Home > T-SQL > T-SQL : List of scheduled reports in SSRS

T-SQL : List of scheduled reports in SSRS


The following query will list all the available report subscriptions in SSRS. The reportserver database basically holds all metadata information [reports, users, schedules, roles etc] of all reports and thereby, querying the same will provide us a lot of useful results, one such example is shown below

SELECT cat.Name        AS ReportName,
       cat.Path        AS ReportPath,
       sub.Description AS Destination,
       usr.UserName    AS ModifiedBy,
       sub.LastStatus  LatestStatus
FROM   ReportServer..Catalog cat
       JOIN ReportServer..reportSchedule repsch
         ON cat.ItemID = repsch.ReportID
       JOIN ReportServer..Subscriptions sub
         ON repsch.SubscriptionID = sub.SubscriptionID
       JOIN ReportServer..Users usr
         ON usr.UserID = cat.ModifiedByID
WHERE  cat.Type = 2
ORDER  BY reportname 

Happy Querying 😉

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: