INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Holding up an SSRS Data Driven Subscription until the Report's Database Restore is Complete.

Holding up an SSRS Data Driven Subscription until the Report's Database Restore is Complete.

Holding up an SSRS Data Driven Subscription until the Report's Database Restore is Complete.

(OP)
Hi,

Any nifty ideas on how I can hold up a report's data driven subscription until the data source (a SQL Server Database) is restored? My data driven subscription (DDS) is blowing up if it runs while the DB is still restoring.

The DDS reads a separate database, invoking a stored procedure that watching msdb.dbo.restorehistory waiting for this mornings restore to finish. It basically does a WAITFOR DELAY loop until its ready. I was hoping this would give me sufficient isolation from the DB being restored. (The DB being restored is the one that holds the data read by the report.)

But the DDS blows up whenever I test my approach with a restore running.

I would rather not move to SQL Server Agent job scheduling for these reports. But, am open to any and all ideas.

Thanks!

RE: Holding up an SSRS Data Driven Subscription until the Report's Database Restore is Complete.

(OP)
Well -- I think my problem was a phantom.

I am seeing separate between the subscription processing (which I want) and the report processing (which I'm trying to prevent, when the source DB is restoring.)

My subscription is now holding up the show, or returning zero rows such that the report doesn't run; it is not blowing up.

Thus, I'm able to control what happens when the report source DB restore has not yet completed.

Thanks.

RE: Holding up an SSRS Data Driven Subscription until the Report's Database Restore is Complete.

(OP)
Please note also, that I also had to change parameters used by the report, to not pull from the unavailable database. Fortunately, for the reports I have, this wasn't a huge deal.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close