Link to home
Start Free TrialLog in
Avatar of fesnyng
fesnyng

asked on

Scheduling Subscriptions with SSRS

I need to schedule Report subscriptions (email) every half hour for specific work hours of the day (ex:  6am through midnight).    In the world of Blackberry's, emails are instantly available AND the execs do not want to receive these subscriptions from midnight through 6am.  

SSRS does not appear to have a Start Time and End Time capability.  The brute force workaround is to create a subscription for each time period.  For a 6am through midnight work day that would be 36 subscriptions,  

Is there any work around (or SSRS feature not yet found) that will save us from creating multiple reports with up to 36 subscriptions each?
ASKER CERTIFIED SOLUTION
Avatar of tpi007
tpi007
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fesnyng

ASKER

>>can located in a table in the ReportServer database but I cannot recall exact tables.
see code snippet below.  Change the WHERE clause as needed to locate the exact report.  




SELECT sch.ScheduleId, sub.[Description] 
FROM dbo.Subscriptions sub
INNER JOIN dbo.Schedule sch ON sub.SubscriptionId = sch.[EventData]
WHERE sub.LastRunTime IS NULL

Open in new window

Avatar of fesnyng

ASKER

PERFECT.  Thanks for the step by step.