Hey,
First I want to identify all the subscriptions that failed in SSRS. Then, I want to create a report that will be scheduled to run daily and give the data related to the reports that had failed subscriptions. Some of the columns that I want are:ServerName, ReportName, ReportPath,Status,ErrorMessage
I have tried running this script:
SELECT C.Name, S.LastRunTime, S.LastStatus, S.Description FROM Subscriptions AS S LEFT OUTER JOIN [Catalog] AS C ON C.ItemID = S.Report_OID WHERE LEFT (S.LastStatus, 12) != 'Mail sent to' AND LEFT (S.LastStatus, 12) != 'New Subscrip'
That gives me the report name, but how will I identify, which 1 failed (By looking at number of errors in LastStatus column?), able to get the report path as well. How will i retrieve other columns?