2

I have a report which is pulling data from a stored procedure however only the headers appear when I run the report without any data. I can track the execution of the procedure in SQL Profiler and when I copy the executing statement with it's parameters into SQL Management Studio the statement runs and returns several thousand rows of data from the same DB.

The data set timeout is set as 0 and no timeout error is given so I don't think it's related to the quantity of data returned however in management studio it does take 10 minutes to run the command.

How do I fix this issue?

UPDATE: The issue seems to be linked to the fact the report is gathering data from a dataset which is using a stored proc 'query type' as when I enter an exec statement as a text query type it does return some data but then I can't change the parameter when running the report.

4

2 Answers 2

1

A couple of things to try:

  1. Test the pocedure outside of reporting services to see if the results come out. If not see if the procedure is buggy.

  2. The results from the procedure, for memory, need to be in the form of a ref_cursor, a table of object or array type.

  3. The 10 minutes to run could be an issue. I suggest trimming down the procedure to run quicker, even if you cut a lot out of it just to test if it works with a quicker response. An example could be to use the same return type but returning a dummy table.

1

Not sure why this fixed it but I played about the the bindings between the .RDL for a while and it seems to have fixed the issue. In report builder it looks exactly the same but according to SVN I've pretty much re-written the whole thing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.