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
Anonymous
Not applicable

Get Data Import not showing Stored Procedures, only Tables (SQL Server)

Hi All:

 

In Desktop, I go to Get Data > SQL Server > Import.  I list my server and database name.  When I click OK, I see a list of the tables in the database but none of the stored procedures.  I have done this successfully manay times, but today no SPs.

 

Please advise.


Thanks

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

This is by design as the Power Query engine is showing objects against which it can generate select queries while a stored proc may or may not return data. If you have a stored proc that you want to use as the source for a model in import mode you can just specify the EXEC command plus any parameters by choosing Get Data -> SLQ Server and then clicking on the Advanced Option and entering the command to call the stored proc in the box for the SQL Statement.

 

2020-03 Power Query using sproc.png

View solution in original post

1 REPLY 1
d_gosbell
Super User
Super User

This is by design as the Power Query engine is showing objects against which it can generate select queries while a stored proc may or may not return data. If you have a stored proc that you want to use as the source for a model in import mode you can just specify the EXEC command plus any parameters by choosing Get Data -> SLQ Server and then clicking on the Advanced Option and entering the command to call the stored proc in the box for the SQL Statement.

 

2020-03 Power Query using sproc.png

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.