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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sdegroot
Helper I
Helper I

Is there a way to view all SQL tables used in our organization's Power BI workspaces?

Hi there, our organization has about 25 Power BI workspaces and 200 power BI reports. Most reports are fed using SQL and we are now looking to list all SQL tables used so that the correct report writers are notified of any changes. Any suggestions on doing this?
1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @sdegroot 

You can try using Power BI REST APIs to get a list of datasources for a specified dataset.

Datasets - Get Datasources (Power BI Power BI REST APIs)

Datasets - Get Datasources In Group (Power BI Power BI REST APIs)

 

And get a list of gateway datasources for a specified dataset.

Datasets - Get Gateway Datasources (Power BI Power BI REST APIs) 

Datasets - Get Gateway Datasources In Group (Power BI Power BI REST APIs)

 

Hope this helps.

Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

3 REPLIES 3
sdegroot
Helper I
Helper I

Thanks! This seems to only show the gateway names a reporter chooses for the published pbix, however we are looking for the SQL table names. 

This will only give you the database and server, not the tables. I don't see anything in the API or PowerShell that will drill down that far.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
v-jingzhang
Community Support
Community Support

Hi @sdegroot 

You can try using Power BI REST APIs to get a list of datasources for a specified dataset.

Datasets - Get Datasources (Power BI Power BI REST APIs)

Datasets - Get Datasources In Group (Power BI Power BI REST APIs)

 

And get a list of gateway datasources for a specified dataset.

Datasets - Get Gateway Datasources (Power BI Power BI REST APIs) 

Datasets - Get Gateway Datasources In Group (Power BI Power BI REST APIs)

 

Hope this helps.

Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors