Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Finding Recipients in Jobs

Author  Topic 

wsilage
Yak Posting Veteran

82 Posts

Posted - 2015-01-07 : 14:17:16
I was wondering if there is a query out there that can find all of the SP jobs that get sent out to a certain email address example 123@xyzcompany.com

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2015-01-07 : 14:28:26
select jobs.name, steps.step_name
from msdb.dbo.sysjobsteps steps
join msdb.dbo.sysjobs jobs on steps.job_id = jobs.job_id
where command like '%your search criteria goes here%'

Please note that you need to escape certain characters, such as the underscore.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -