Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
Is it not possible to EXEC SQL Server (SQL 2014) stored procs from PowerBI? I've been reading various posts on different forums and people are saying that I need to use OPENQUERY for this, is this this correct? I basically have 7 stored procs that all return tables that I want to display independanly on a a single dashboard. I want the stored procs to be called every time the dashboard refreshes so direct query seems to make sense, rather than import.
What I mean by "independanly" is that they should not have dependancies on each other, so slight follow up question, how do I stop dependancies, would it just be some form on panel?
Thanks
Solved! Go to Solution.
@thedavegray,
I am not quite clear about your requirement that call stored procedure when the dashboard refreshes. Could you please elaborate your expected result?
In Power BI Desktop, you can call stored procedure by passing different parameter values as described by Eric in this similar thread. Or you can import data from Stored procedure using OPENQUERY as follows.
Regards,
Lydia
@thedavegray,
I am not quite clear about your requirement that call stored procedure when the dashboard refreshes. Could you please elaborate your expected result?
In Power BI Desktop, you can call stored procedure by passing different parameter values as described by Eric in this similar thread. Or you can import data from Stored procedure using OPENQUERY as follows.
Regards,
Lydia
Ok so this does not appear to work. I have enabled "exec sp_server_option 'server', 'data access', 'true'
The stored procedure I want to connect to has multiple parameters where only the first is mandatory. The error I'm getting relates to the stored procedure using #temp tables. Is this really true, you cannot call stored procedures that make use of temp tables?
"Or you can import data from Stored procedure using OPENQUERY as follows."
Does that mean that it's a one-time import? I want the data loaded on schedule.
Thanks
Hello,
Sorry I don't seem to be getting notification so only just realised that you had posted. Thanks, you example will
work for my requirments.
Regards
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.