Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql SSRS报告每个报告的上次执行时间_Sql_Sql Server_Reporting Services_Ssrs 2008 - Fatal编程技术网

Sql SSRS报告每个报告的上次执行时间

Sql SSRS报告每个报告的上次执行时间,sql,sql-server,reporting-services,ssrs-2008,Sql,Sql Server,Reporting Services,Ssrs 2008,我有75个SSRS报告,我需要在DateTime最新(最大)执行每个报告。您能帮我查询一下吗?您可以使用catalog和executionlog表来获取此信息 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.n

我有75个SSRS报告,我需要在DateTime最新(最大)执行每个报告。您能帮我查询一下吗?

您可以使用catalog和executionlog表来获取此信息

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]