Ssrs報表查詢用戶打開記錄

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

where username <>'NT AUTHORITY\NETWORK SERVICE'

and username<>'NT Service\ReportServer'

and username<>'NT Service\ReportServer'

and DateDiff(dd,TimeEnd,getdate())<=30

order by TimeEnd desc

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章