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.
vineetmodi
9 years agoFrequent Visitor
I tried the same way to execute one of the stored procedure inside my Oracle package but failed
-- create a variable to hold SQL command to run
DECLARE @SqlCommand varchar(8000)
-- set the command to run
SET @SqlCommand = 'INTG_PA_BAL_DASHBOARD_PUB.populate_balance_db'
-- run it!
EXEC (@sqlCommand @parameter1=529,@parameter2="ALL",@parameter3="Feb-17",@parameter4=" ",@parameter=" ")