简体   繁体   中英

SSRS Report last execution time for each report

I have 75 SSRS reports and I need to get each report latest (max) executed DateTime. Could you please help me with this query?

You can use the catalog and executionlog tables to get this information

SELECT 
    c.Name, c.[Path], MAX(e.TimeStart) as LastRun
 FROM ReportServer.dbo.Catalog c 
    join ReportServer.dbo.ExecutionLog e on c.ItemID = e.ReportID
GROUP BY c.name, c.[Path]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM