Created
April 15, 2021 14:19
-
-
Save paschott/f31fd28ea39bbfbaacdc0d570cc1d985 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --Get SQL Agent Job names for SSRS Subscriptions | |
| SELECT Schedule.ScheduleID AS JobName, | |
| [Catalog].Name AS ReportName, | |
| Subscriptions.Description AS Recipients, | |
| [Catalog].Path AS ReportPath, | |
| StartDate, | |
| Schedule.LastRunTime | |
| FROM [ReportServer].dbo.ReportSchedule | |
| INNER JOIN [ReportServer].dbo.Schedule | |
| ON ReportSchedule.ScheduleID = Schedule.ScheduleID | |
| INNER JOIN [ReportServer].dbo.Subscriptions | |
| ON ReportSchedule.SubscriptionID = Subscriptions.SubscriptionID | |
| INNER JOIN [ReportServer].dbo.[Catalog] | |
| ON ReportSchedule.ReportID = [Catalog].ItemID | |
| AND Subscriptions.Report_OID = [Catalog].ItemID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment