Groups | Blog | Home
all groups > sql server reporting services > june 2007 >

sql server reporting services : stored procedure call not working


phanigk
6/21/2007 3:11:00 PM
Hi,

I am creating a simple report which will execute a stored procedure and will
display the result.

If I run the SP from query analyzer it runs simply fine. When I run the
report, the report is getting hung and when I check the SPIDs in the DB, its
showing as suspended in status. My entire BI studio is getting hung and I had
to close it not sure why
( all are 2005 services).

Any fast responces are help greatly appreciated.

Thanks,
Phani
EMartinez
6/22/2007 1:29:14 AM
[quoted text, click to view]


Here are a few things to check:
- If you are accessing a SQL Server 2000 database from SSRS 2005, it
will most likely not work very well, if at all.
- Make sure that you're report project Datasource is setup correctly
(i.e., has the correct connection string, etc).
- Make sure that if you are passing parameters to your stored
procedure/query, that you tie them correctly in the dataset (via the
Data tab -> Edit Dataset button [...] -> Parameters tab).
- If you are using report parameters, make sure that your datasets are
not erroring out for those parameters.
- Lastly, make sure that you have the latest service pack for SQL
Server.
Hope this helps.

Regards,

Enrique Martinez
Sr. Software Consultant
Bruce L-C [MVP]
6/24/2007 9:32:19 PM
A couple of points. This is occuring from BI so it is not specifically SSRS
2005. By this I mean that it could be a design time issue.

Second, there is absolutely no reason why RS 2005 would have any trouble
whatsoever running a stored procedure that is in SQL Server 2000. I run
stored procedures that are on Sybase, SQL Server 2000, SQL Server 2005. All
with no difficulty at all. If you have problems with this it could be that
there is a work around. I might be doing something differently which results
in my not having any issues at all with stored procedures.


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

AddThis Social Bookmark Button