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 all SQL jobs in Job Activity Monitor with Sp_help_job

03 November,2014 by Tom Collins

Question: How can I list all jobs that appear in the SQL Server Agent Job Activity Monitor?

Answer: To list all SQL jobs as listed in the Job Activity Monitor use the msdb.dbo.sp_help_job stored procedure.

Using msdb.dbo.sp_help_job

The stored procedure accepts parameters, and if you’d like to view the parameters link here. Otherwise running the stored procedure   - msdb.dbo.sp_help_job -   without any parameters will list all the jobs  and associated details - such as status, name,description,owner_sid,date_created,date_modified,enabled

Another option is   msdb.dbo.sysjobs_view

  

 

USE msdb ;
GO
EXEC dbo.sp_help_job ;
GO

 

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 all SQL jobs in Job Activity Monitor with Sp_help_job


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