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
ArunKumarRp
Frequent Visitor

Executed Stored Procedure in Direct Query with parameters ,After binding Parameter, its not working?


I have connected Stored Procedure in Direct Query. I have used parameters and executed. It's showing data in Power Query. While loading data into data modeling in PBI Desktop, it shows a Error.
"Microsoft SQL: Incorrect syntax near the keyword 'Exec'. Incorrect syntax near ')'." .

ArunKumarRp_0-1681735029021.png


Please help me on this issue.

1 REPLY 1
Anonymous
Not applicable

Hi @ArunKumarRp ,

Check the document below to see if you do the right thing.

Execute SQL Server Stored Procedure With User Parameter In Power BI (c-sharpcorner.com)

 

I have also found a similar post, please refer to it to see id it helps you.

Solved: Direct Query using Stored Procedure from Azure SQL... - Microsoft Power BI Community

 

If it does not help, please provide more details .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.