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

gateway doesn't work with SQL server Stored procedure

The gateway option is greyed out on the Dataset settings window. A stored procedure is used to get the data from SQL server. Data connectivity mode is set as 'Impoort'.

 

Can anybody help?

 

thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Seth_C_Bauer@Anonymous

 

Thanks, and it works now. I changed the server of the connection on the desktop to match what is on the list of gateway setting while add the real server in the query.

View solution in original post

6 REPLIES 6
Seth_C_Bauer
Community Champion
Community Champion

@Anonymous The datasource set up in the Service needs to match what you have set in the Power BI Desktop exactly. That is most likely the cause if you have no issues when running the report in the Desktop.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG
Anonymous
Not applicable

@Seth_C_BauerCould you tell me more about how to setup the datasource in the service to get the SP work? screenshot would be great. Thanks!

@Anonymous Which gateway did you deploy? Are you just executing a stored procedure or are you trying to pass a parameter?


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG
Anonymous
Not applicable

@Seth_C_Bauerpublic gateway, just a Sp without paramter...

Anonymous
Not applicable

Hi @Anonymous,

 

What connection mode you use? If you mean 'direct query', current you can invoke stored procedure in power query, but it not works on direct query mode.

 

Regards,
Xiaoxin Sheng

Anonymous
Not applicable

@Seth_C_Bauer@Anonymous

 

Thanks, and it works now. I changed the server of the connection on the desktop to match what is on the list of gateway setting while add the real server in the query.

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.