Skip to content

Instantly share code, notes, and snippets.

@nlarkin
Created January 6, 2016 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nlarkin/cb7fff3f09e33b27855c to your computer and use it in GitHub Desktop.
Save nlarkin/cb7fff3f09e33b27855c to your computer and use it in GitHub Desktop.
Get Sharepoint Report Execution History
Use ReportServer
Select e.*,
CASE(e.RequestType)
WHEN 0 THEN 'Interactive'
WHEN 1 THEN 'Subscription'
WHEN 2 THEN 'Refresh Cache'
ELSE 'Unknown'
END as ExecutionType
from ExecutionLogStorage e join Catalog c on e.ReportID = c.ItemID
Where e.TimeStart >= '2016-01-04'
AND c.Name Like '%Transactions Feed for MM IM Mart Replacement Report%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment