Rules for calling stored procedures from PowerPivot?

srieta619

New Member
Joined
Oct 21, 2013
Messages
4
I've pretty well versed in T-SQL development and am working with a client that is using PowerPivot to call SQL Server stored procedures that i have created. For some of the stored procedures that involve table variables, temp tables and cursors, with the resultset being a physical table joining to a table variable, the user gets the infamouse ' no columns detected in the statement'. The user is using the Wizard to select the stored procedure. They see the parameters but nothing in the field area. I tried to go into the stored procedure and just do a basic select from an existing table and I see the columns. My question is; What are the rules for calling procedures from Power Pivot? I'm attempting to use the SQL Server to do the bulk of the work and have PowerPivot just pull the resultset. Can I not use table variables or temp tables?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
This is a bit of a guess based on the way ADO behaves with such SPs but have you tried adding a SET NOCOUNT ON statement to the start of the SPs?
 
Upvote 0
Hi Rory, i did add the 'set nocount on' but that didn't help with using table variables our temp tables. My issue is multi users can call the same procedure at the same time but with different parameters.
 
Upvote 0
So, is it me or does PowerPivot NOT recognize @TableVariables, #TempTables, ##GlobalTempTables? If it only recognizes physical tables it's pretty useless correct? I mean what if you want your stored procedure call to only work with it's own set/scope of data without interfering with other users' calls?
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,699
Members
452,667
Latest member
vanessavalentino83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top