Need to find user accounts that are running jobs

  • 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?

  • 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" 😉

  • Thanks Perry!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply