Click here to Skip to main content
11,567,539 members (45,346 online)
Click here to Skip to main content

All the jobs in SQL Server

, 10 Aug 2011 CPOL 17.1K
Rate this:
Please Sign up or sign in to vote.
If you want to list all the SQL Server jobs on your server and see which are enabled or disabled. This query will do it.

SELECT  a.job_id,,
		CASE a.enabled
			when 1
				then 'True'
			when 0
				then 'false'
		as Enabled			
FROM   msdb.dbo.sysjobs a


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
United Kingdom United Kingdom
SQL Server developer and a geek

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150624.2 | Last Updated 10 Aug 2011
Article Copyright 2011 by seankk
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid