Forum Discussion
eferreira
10 years agoNew Member
Use SQL Store Procedure in Power BI
I have created a basic stored procedure without parameters in SQL Server, when I use the store procedure in Power Bi Desktop the return is ok in design but when I click on Save and Close in datasourc...
nirajdubey
10 years agoAdvocate I
Its a late reply, but it may help some body else, you can use openquery. Follwoing syntax will work with both import data and direct query
SELECT *
FROM OPENQUERY ([server name],
'EXEC dbname.dbo.spname @parametername = ''R1''');
ZhiqiangZhou
10 years agoMicrosoft Employee
nirajdubey Thank you. I succeeded in using the SP by OpenQuery as you introduced.