Using CMS , we can get a list of all the Jobs on all the servers that have no email (nor page, nor netsend) notification set up for Failure. This can be useful to find Jobs that are silently failing, and even Jobs that are no longer in use. -- Find Jobs that aren't notifying on failure. set nocount on -- notify_level_email -- 0 - Never -- 1 - On success -- 2 - On failure -- 3 - Always select name from msdb..sysjobs where enabled = 1 and notify_level_email not in (2, 3) and notify_level_page not in (2, 3) and notify_level_netsend not in (2, 3) and name not like 'CDW\_%' escape '\' and name not like 'dtexecRemote\_temp\_job\_%' escape '\' and name 'syspolicy_purge_history' and name 'MySpecialJob' and @@servername not in ('MYSERVER1', 'MYSERVER2') order by name
↧