Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DavidDBA43
New Member

How identify PowerBi Report from the executing SQL?

How do I identify which cloud based PowerBI reports are using the SQL that is being captured on a databaese server?

We have poorly coded SQL Server SQL and are looking to correct it. How do I identify the PowerBI reports that are using it?

This would also be help when identifying the impact when table definitions need to change.

 

Thank You for your assistance

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @DavidDBA43 

 

You can have SQL Profiler running, which you can store the resutls to a table in your database to then identify queries?

 

Save Trace Results to a Table - SQL Server Profiler | Microsoft Learn





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

GilbertQ thank you for your response

 

I would need to run SQL profile for several thousands of PowerBI reports. 

Is there anything in the profile trace I can add to identify which PowerBI report the SQL is from?

 

If there is nothing in the SQL to identify which report the SQL is for, I will need to do it at a time when no one else is running the reports on the cloud PowerBI App and manually record which report the SQL is from.

 

Hi @DavidDBA43 

 

Yeah that makes it quite hard to troubleshoot but I do not know of any other way to do it!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.