I am unable to see any data for failed jobs in my database

I am unable to see any data for failed jobs in my database

If you are unable to see data for failed jobs or if there is a mismatch between the failed jobs data in the SQL performance monitor and the SQL insight monitor, check if you have granted the necessary permission.

Data in the SQL performance monitor:

 

Data in the SQL insight monitor:


If the
SELECT permission is not given, you will not be able to get the details of the jobs, and you might get the following error in your agent log file:

The SELECT permission was denied on the object 'sysjobsteps', database 'msdb', schema 'dbo'.

Command:
Use the below command to provide the necessary permission:
use msdb;
GRANT SELECT TO "NT AUTHORITY\SYSTEM";

 

Customers also search this article for

There is a mismatch between the number of failed jobs shown and the actual number of failed jobs