1

I have lot of jobs in my SQL server agent. I want to know which all the jobs are configured with email notification. I can do individually by editing and checking for the job steps. Any query/procedure to give the job names that have email notification in one shot.

Manoj Nayak
  • 2,449
  • 9
  • 31
  • 53

1 Answers1

1

You can run this query on [msdb] db.

use [msdb]

select j.name, o.name, o.email_address 
from 
[dbo].[sysjobs] j 
inner join [dbo].[sysoperators] o on j.notify_email_operator_id  = o.id
Serkan Arslan
  • 13,158
  • 4
  • 29
  • 44