查看Reporting Services服务器中用户查询报表历史记录

一直想知道Reporting Services中有没有一张Table记录用户查询报表的历史记录,找了好久终于找到了。

查询脚本如下:

SELECT  [InstanceName]
      ,CG.Path--报表路径
      ,CG.Name--报表名字
      ,[ReportID]
      ,[UserName]--用户名
      ,[RequestType]
      ,[Format]
      ,[Parameters]
      ,[TimeStart]--查询开始时间 精确到了毫秒。
      ,[TimeEnd]--查询结束时间
      ,[TimeDataRetrieval]
      ,[TimeProcessing]
      ,[TimeRendering]
      ,[Source]
      ,[Status]
      ,[ByteCount]
      ,[RowCount]      
  FROM [ReportServer].[dbo].[ExecutionLog] EL--视图,主要基于表dbo.ExecutionLogStorage
  left join [ReportServer].dbo.Catalog CG
  on CG.ItemID=el.ReportID

 

posted @ 2017-06-18 14:52  TINGL  阅读(872)  评论(0编辑  收藏  举报