Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Identifying the failed jobs/subscriptions for an SSRS report

$
0
0

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?


Viewing all articles
Browse latest Browse all 28687

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>