|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: 2 days ago @ 11:35 AM
Points: 112,
Visits: 212
|
|
| I keep running in to jobs that are running under the account of the previous DBA that held my new position. Is there an easy way to query for what accounts jobs are running under?
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 2:02 PM
Points: 5,201,
Visits: 11,149
|
|
The following should help
SELECT jobs.name, jobs.enabled, SUSER_SNAME(jobs.owner_sid) as Owner FROM msdb.dbo.sysjobs as jobs
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: 2 days ago @ 11:35 AM
Points: 112,
Visits: 212
|
|
|
|
|