Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSRS report, multiple datasets based on same table, how to avoid deadlock? Expand / Collapse
Author
Message
Posted Thursday, February 20, 2014 2:37 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, July 24, 2014 9:19 AM
Points: 150, Visits: 370
Hi,

I have report with 6 pages, based on the same table Monthly_Data table, just different fields/format/representation/.
I made a rdl when Dataset1 doing the main work creating that Monthly_Data table with ssrs date parameters, then Dataset1 do its selection from that table for Page1,
consequently Dataset2, 3, 4.. select data in different format from same Monthly_Data.

And it doesn't work, as I understand all Dataset1,2,3,4 calls db at the same time when Monthly_Data is not created yet and it gives me an error.

What could be the solution? how to "schedule" Dataset2 to wait till Dataset1 will be completed? I don't want to create same big main Select for monthly_table in each Dataset, it takes 30 sec to run,

Thanks for help.
Mario

ssrs alpha bravo
Post #1543740
Posted Thursday, February 20, 2014 5:43 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 1:21 PM
Points: 171, Visits: 6,182
Here is an article on dataset execution order that may trigger some ideas:

http://blogs.msdn.com/b/robertbruckner/archive/2008/08/07/dataset-execution-order.aspx
Post #1543777
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse