info@techdevops.com | 437-991-3573 | Data Engineering Services
TechDevOps.com
Resources Tools
Experts in Microsoft SQL Server on Windows, Linux, Containers | Clusters, Always On, FCI | Migrations, Cloud, Performance



SQL Server Reporting Services - Report Usage Stats
by BF (Principal Consultant; Architecture; Engineering)
2018-11-23








T-SQL:


Select
InstanceName,
UPPER(ReportPath) as 'Report',
RequestType,
UserName,
DatePart(Year, TimeStart) as 'Year',
DatePart(Month, TimeStart) as 'Month',
count(*) as 'Total Report Calls'
from ExecutionLog2
group by InstanceName, ReportPath, RequestType, Username, DatePart(Year, TimeStart), DatePart(Month, TimeStart)
order by InstanceName ASC, ReportPath ASC, RequestType ASC, 'Year' ASC, 'Month' ASC