Click here to Skip to main content
13,150,178 members (60,326 online)
Click here to Skip to main content
Add your own
alternative version

Stats

18.8K views
Posted 10 Aug 2011

All the jobs in SQL Server

, 10 Aug 2011
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,
		a.name,
		a.description,
		a.date_created,
		a.date_modified,
		CASE a.enabled
			when 1
				then 'True'
			when 0
				then 'false'
			end
		as Enabled			
		
		
FROM   msdb.dbo.sysjobs a

License

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

Share

About the Author

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

You may also be interested in...

Pro
Pro

Comments and Discussions

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