读书人

Reporting Services 服务器上哪张Tabl

发布时间: 2014-04-28 18:05:52 作者: rapoo

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

用的是SQL server2012的版本


可以查询到 用户名,查询时间,哪张报表,访问了多少次
[解决办法]

/****** 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。

读书人网 >行业软件

热点推荐