如何检查SSRS报告是由用户执行还是SSRS SQL数据库中的自动刷新?

时间:2015-06-15 05:52:18

标签: sql sql-server tsql reporting-services ssrs-2008-r2

如何检查SSRS报告是由用户执行还是SSRS SQL数据库中的自动刷新?

我假设答案在ExecutionLog表或其链接的内容中,但我似乎无法在任何地方找到答案。

开头的查询:

    SELECT  Path Path ,
            Name Name ,
            CreatedBy.UserName CreatedBy ,
            COUNT(DISTINCT ExecutionLog.UserName) DistinctUserCount ,
            COUNT(ExecutionLog.UserName) ExecutionCount
    FROM    Catalog
            LEFT JOIN Users CreatedBy ON CreatedBy.UserID = Catalog.CreatedByID
            LEFT JOIN ExecutionLog ON Catalog.ItemID = ExecutionLog.ReportID
    GROUP BY Path ,
            Name ,
            CreatedBy.UserName
    ORDER BY Path ,
            Name ,
            CreatedBy.UserName

任何帮助都将不胜感激。

0 个答案:

没有答案