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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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