Forum Discussion
Way to get all SQLs in Power Query Editor
abpgupta - What do you mean by "all SQLs"? SQL tables? Stored procedures? ?
Hi Greg_Deckler ,
I meant to capture all Native Queries sent to Database while running refresh.
Thanks!
- v-easonf-msft5 years agoCommunity Support
Hi, abpgupta
If you are querying a relational database, especially SQL Server, then you want to make sure that query folding is being applied. Query folding is when M code in PowerQuery is pushed down to the source system, often via a SQL query. One simple way to confirm that query folding is working is to right click on a step sand select View Native Query. This will show you the SQL query that will be run against the database.
You can also view related queries through SQL Server Profiler.
For more details,please check the part of this document about determining-the-queries-sent-by-power-bi-desktop.
Best Regards,
Community Support Team _ Eason