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...
dsilveira
9 years agoAdvocate I
Hi, I had the same problem and found a way to use the parameters
DECLARE @sqlCommand varchar(1000) SET @sqlCommand = 'sp_name' EXEC @sqlCommand @Parameter1= 39, @Parameter2= 'myString', @Parameter3 = 'myString2'
I hope it helps somebody.
Regards.
Anonymous
9 years agoNot applicable
dsilveira Nice! Thanks for sharing.