April 25, 2016 at 7:08 am
Looking for T-SQL to generate a list of all SSRS "enabled, scheduled jobs" which run Reporting Services subscriptions.
It must list "enabled, scheduled jobs" (disabled and/or unscheduled jobs must not be included) thx in advance
April 25, 2016 at 7:43 am
something like this should get you started;
select
e.name
, e.path
, d.description
, a.SubscriptionID
,b.enabled
, laststatus
, eventtype
, LastRunTime
, date_created
, date_modified
FROM ReportServer.dbo.ReportSchedule a
INNER JOIN msdb.dbo.sysjobs b
ON convert(varchar(40),a.ScheduleID) = b.name
INNER JOIN ReportServer.dbo.ReportSchedule c
ON b.name = convert(varchar(40),c.ScheduleID)
INNER JOIN ReportServer.dbo.Subscriptions d
ON c.SubscriptionID = d.SubscriptionID
INNER JOIN ReportServer.dbo.Catalog e
ON d.report_oid = e.itemid
WHERE 1 = 1
Lowell
April 27, 2016 at 4:49 am
thanks Lowell - I will work with this SQL. Much appreciated!
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply