SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSRS report, multiple datasets based on same table, how to avoid deadlock?


SSRS report, multiple datasets based on same table, how to avoid deadlock?

Author
Message
mario17
mario17
SSCrazy
SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)

Group: General Forum Members
Points: 2198 Visits: 683
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
doug.brown
doug.brown
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2417 Visits: 16336
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search