At work we use SQL Server Reporting Services (SSRS) for our reporting needs. I like to have a few SQL Scripts to help me keep track of our subscriptions, when they ran and check on any errors.
At work we use SQL Server Reporting Services (SSRS) for our reporting needs. I like to have a few SQL Scripts to help me keep track of our subscriptions, when they ran and check on any errors.
Here's a couple of SQL Scripts that I use when needed and I don't have the website where I found these but if you know where they we're originally posted, let me know so I can give credit where credit is due.
SELECT SubscriptionID , d.LastStatus , e.Name , e.Path , d.DeliveryExtension , d.LastRunTime , d.ExtensionSettings FROM Subscriptions d JOIN ReportServer.dbo.Catalog e ON d.Report_OID = e.ItemID
SELECT SubscriptionID , d.LastStatus , e.Name , e.Path , d.DeliveryExtension , d.LastRunTime , d.ExtensionSettings FROM Subscriptions d JOIN ReportServer.dbo.Catalog e ON d.Report_OID = e.ItemID ORDER BY d.LastRunTime DESC;
SELECT SubscriptionID , d.LastStatus , e.Name , e.Path , d.DeliveryExtension , d.LastRunTime , d.ExtensionSettings FROM Subscriptions d JOIN ReportServer.dbo.Catalog e ON d.Report_OID = e.ItemID WHERE DeliveryExtension = 'Report Server FileShare'
SELECT SubscriptionID , d.LastStatus , e.Name , e.Path , d.DeliveryExtension , d.LastRunTime , d.ExtensionSettings FROM Subscriptions d JOIN ReportServer.dbo.Catalog e ON d.Report_OID = e.ItemID WHERE DeliveryExtension = 'Report Server Email'