Follow sqlserver-dba.com

Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions

SQLServer-DBA.com Links

Dba_db2_button

dba-ninja.com

SQL Server DBA Jobs

List enabled status of SQL Server Agent Jobs

25 September,2014 by Tom Collins

Question: How  can I list all SQL Server Agent jobs and the enabled status for the  job? I want to execute a query and store the information  for reference.

Answer: SQL Server Agent jobs are listed in the msdb.dbo.sysjobs table. The “enabled” column stores a flag, indicating whether the job can be executed.

Script to list SQL Agent Jobs status

 

SELECT @@servername, [name] as 'job name', [enabled] as 'enabled' 
FROM msdb.dbo.sysjobs 

Read More on SQL Server Agent job History

SQL Server - Send sql server agent job history through email notification

SQL Server agent fixed roles

SQL Agent Jobs – Schedule in seconds

List failed SQL server Jobs with Powershell


Author: Tom Collins (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on List enabled status of SQL Server Agent Jobs


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer