Link to home
Start Free TrialLog in
Avatar of ive5005s
ive5005s

asked on

SQL Reporting Services - SP with Temp Table

Hi,

Is it possible to create a report using the report wizard that will return the results from a Stored Procedure that contains a temporary table?

I have tried this but I get an error message at the "Design the Query" stage of the Wizard......

"There is an error in the query. Invalid object name '#Temp'.

I also get the same message if I try to display the estimated execution plan in Query Analyser.

Thanks in advance,
Steve.

ASKER CERTIFIED SOLUTION
Avatar of ABaruh
ABaruh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ive5005s
ive5005s

ASKER

Thanks ABaruh,

Please could you point me to some resources that will explain how I to do this?

Thanks.
When you open a new project in Visual Studio, you have two choices:

Report Project Wizard
or
Report Project

choose the latter.
I did answer his question about why he was getting the error message - you cannot use the Report Wizard if the SQL stored proc in the dataset has temp tables.  That should be worth getting the solution points.
Thanks ABaruh.