Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

ReportServerDB - Find LastRun for reports

$
0
0

We are in the process of removing old reports off of SSRS. The following query is giving us the data we want to see:

SQL
USEReportServerDBGOSELECTDISTINCTC.NAME,C.Path,MAX(EL.TIMESTART)ASLastRunFROMREPORTSERVERDB.DBO.EXECUTIONLOG(NOLOCK)ELRIGHTOUTERJOINREPORTSERVERDB.DBO.CATALOG(NOLOCK)CONEL.REPORTID=C.ITEMIDWHERETYPE=2GROUPBYC.NAME,C.PathORDERBYC.Path,C.NAME
Some of the records are coming up NULL, assuming they haven't been ran in a long time. Is there a way to see the dates on these records. It looks like the execution log, by default, only holds data for 60-90 days; which is why I think we're seeing NULL

Thanks,

Mike



Viewing all articles
Browse latest Browse all 4871

Trending Articles



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