sql to list all jobs on SSRS web interface ??

  • Hi

    Not sure if I am explaining this correctly.. but...

    The web interface for SSRS which we call Report Store has gotten a bit out of hand...

    I would like to write an SP to list all the reports that have been deployed, their name, last use (if possible) and path

    Any info, tables etc.. would be great

    Thanks

    Joe

  • http://stackoverflow.com/questions/1179082/ssrs-tracking-report-usage was interesting and probably will help you.

    It mentions that once you determine the reports that nobody uses that you can move them to unclutter your RS instance.

  • The solution pointed to by Piet is a good starting point. I'd modify it to do something more along these lines:

    SELECT

    Catalog.Type,

    Catalog.Name,

    Catalog.Path,

    MAX(ExecutionLog.TimeStart) AS lastUsed

    FROM

    dbo.Catalog

    LEFT JOIN dbo.ExecutionLog

    ON Catalog.ItemID = ExecutionLog.ReportID

    WHERE

    Catalog.Type = 2

    GROUP BY

    Catalog.Type,

    Catalog.Name,

    Catalog.Path

    The LEFT JOIN ensures that you will get all the reports currently with a NULL in the lastUsed column if there is no longer a row in the Execution Log because the last use has aged out of the execution log.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply