Skip to content

Instantly share code, notes, and snippets.

@kristinaconley
Created February 22, 2017 17:43
Show Gist options
  • Save kristinaconley/a0f33fb609ed46129e73dcfe395b7d38 to your computer and use it in GitHub Desktop.
Save kristinaconley/a0f33fb609ed46129e73dcfe395b7d38 to your computer and use it in GitHub Desktop.
List All SSRS Subscriptions
USE [ReportServer]; -- You may change the database name.
GO
SELECT USR.UserName AS SubscriptionOwner
,SUB.ModifiedDate
,SUB.[Description]
,SUB.EventType
,SUB.DeliveryExtension
,SUB.LastStatus
,SUB.LastRunTime
,SCH.NextRunTime
,SCH.Name AS ScheduleName
,CAT.[Path] AS ReportPath
,CAT.[Description] AS ReportDescription
,SUB.Parameters
FROM dbo.Subscriptions AS SUB
INNER JOIN dbo.Users AS USR
ON SUB.OwnerID = USR.UserID
INNER JOIN dbo.[Catalog] AS CAT
ON SUB.Report_OID = CAT.ItemID
INNER JOIN dbo.ReportSchedule AS RS
ON SUB.Report_OID = RS.ReportID
AND SUB.SubscriptionID = RS.SubscriptionID
INNER JOIN dbo.Schedule AS SCH
ON RS.ScheduleID = SCH.ScheduleID
ORDER BY USR.UserName
,CAT.[Path];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment