SQL Server Script to list all SQL Server agent jobs

In this post the focus is on identifying the list of sql server agent jobs in an instance. The purpose of listing out all the existing jobs is for documentation just to make sure that the jobs in the list are created whenever a new database server is built to replace the existing database server.  The script is as shown below:

select sj.name as 'Job Name' from msdb..sysjobs sj left join master.sys.syslogins sl on sj.owner_sid = sl.sid

Hope this helps!

This entry was posted in SQL Server DBA Stuff and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s