当前位置: 代码迷 >> 报表 >> Reporting Services 服务器下哪张Table记录了用户查询历史记录
  详细解决方案

Reporting Services 服务器下哪张Table记录了用户查询历史记录

热度:122   发布时间:2016-05-05 07:42:06.0
Reporting Services 服务器上哪张Table记录了用户查询历史记录?
Reporting Services 服务器上哪张Table记录了用户查询历史记录?

用的是SQL server2012的版本


可以查询到 用户名,查询时间,哪张报表,访问了多少次
sql?server 2012

------解决方案--------------------
/****** Script for SelectTopNRows command from SSMS  ******/
SELECT TOP 1000 [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
  

查询多少次,楼主可以根据你想要字段进行group by。
  相关解决方案