I have a report that generates PDF's using a data driven subscription process.
When the job is started, it shows a success status shortly afterwards, however I believe that this is really asynchronous and therefore cannot be used as an indication of the jobs status. Is there a reliable indicator that can be used?
Ideally this would be something that would allow me to automate a check in a stored procedure.
Best Answer
Using the ReportServer database, I have a script that appears to work.
Querying the same table as my data driven query
and compare the result of that to the below
Then I should be able to compare the results to know when it has completed.
I'm relying on an internal table to SSRS which could change at any time, so I appreciate this method is totally unreliable, but it seems better than polling to see which files have appeared on disk.
This makes some massive assumptions: