一直想知道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

 

相关文章:

  • 2021-12-24
  • 2021-05-10
  • 2021-11-11
  • 2021-12-19
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-12-24
  • 2022-01-11
  • 2022-03-02
  • 2022-12-23
相关资源
相似解决方案