Hi
I have created a data subscriptionto provide 2 parameterstoexecute anSSRS report andsave a
To do this I have created a stored proc which provides the report parameters (client code and date) plus file name and path.
So the proc produces this:
Code date Filename Path
Code1, Todays Date, Code1.pdf, c:\temp
Code2, Todays Date, Code2.pdf, c:\temp
Code3, Todays Date, Code3.pdf, c:\temp
Code4, Todays Date, Code4.pdf, c:\temp
The Code & Date outputs from the data subscription stored proc provide the parameters to execute an SSRS report.
I am expecting it to produce a 4 files as described in filename and path, however when I execute the subscription it produces 2 files and then reports errors for the other two.
Checking the report services log files, I can see that it is reporting deadlock issues when executing.
It seems to be processing the above list in parallel rather than serially (I checked this by executing sp_who2 and could see it was creating separate spids to execute the rows) so the stored proc it was executing in the SSRS report on spid 1 was deadlocking with spid 2 which was executing the same proc.
I’ve have other data subscriptions which don’t have this problem but in this particular case the stored proc is very complex.
Is there a way of getting a data subscription to execute through its list serially rather than in parallel so that each code produced by the data subscription proc is executed one at a time rather than several at a time?