SQL

How to find the SSRS Job Name with the Report Name SQL

How to find the SSRS Job Name with the Report Name SQL

In order to check the status of the SSRS report subscription jobs, status, and the last run time, run the following SQL script against the MASTER DB. ย It will list:

  • report id
  • report name
  • last status
SELECT
cย .Nameย ASย ReportName
,ย rsย .ย ScheduleIDย ASย JOB_NAME
,ย sย .ย [Description]
,ย sย .ย LastStatus
,ย sย .ย LastRunTime
FROM
ReportServerย ..[Catalog]ย c
JOINย ReportServerย ..ย Subscriptionsย sย ONย c.ย ItemIDย =ย s.ย Report_OID
JOINย ReportServerย ..ย ReportScheduleย rsย ONย c.ย ItemIDย =ย rs.ย ReportID
ANDย rsย .ย SubscriptionIDย =ย sย .ย SubscriptionID

 
This will give you output in the SQL Management Studio in Grid view of your report name and then also allow you to match this up with the very non-intuitive JOB_NAME. ย Once you have this information, you can then check your Job logs for the jobs in which you would like to see the history and more details about previous job runs.

To do this simply:

  • Look under SQL Server Agent in Management Studio
  • Jobs
  • Right-click the job and choose to view history

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.