Paul Duffett – Me, myself and MS SQL Server

The ramblings of a mad man

Identifying job owners

leave a comment »

This is a handy little function that will decrypt the owner_id from the msdb sysjobs table. Just wanted to post it very quickly because I’ve just had to search for it yet again.

SELECT name, suser_sname(owner_sid) as owner
FROM
sysjobs

 

Enjoy

PD

Written by paulduffett

September 22, 2008 at 4:13 pm

Posted in Uncategorized

Leave a Reply