Created
June 27, 2016 13:39
-
-
Save juan-fdz-hawa/7701ab1291223017c0982fa8c0d4818c to your computer and use it in GitHub Desktop.
This file contains 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
USE [ReportServer]; | |
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 | |
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 CAT.[Path], USR.UserName; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment