Forum Discussion

crejo's avatar
crejo
Regular Visitor
1 year ago
Solved

Loading multiple tables from one SQL query

Take the following PowerQuery M code:       let QueryResult = Sql.Database("Server", "database", [Query="select * from MyTable1; select * from MyTable2;"]) in QueryResult       This wil...
  • lbendlin's avatar
    lbendlin
    1 year ago

    Then you would have to package them (for example as JSON or XML) and send them over as a string that you would then untangle in Power Query.  And this is where the fun stops - Power Query cannot create multiple tables from a single query.

     

    What's your business case?