Export (0) Print
Expand All

View the Job History

 

This topic describes how to view the Microsoft SQL Server Agent job history log in SQL Server 2016 by using SQL Server Management Studio, Transact-SQL, or SQL Server Management Objects.

To view the job history log

  1. In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.

  2. Expand SQL Server Agent, and then expand Jobs.

  3. Right-click a job, and then click View History.

  4. In the Log File Viewer, view the job history.

  5. To update the job history, click Refresh. To view fewer rows, click the Filter button and enter filter parameters.

Arrow icon used with Back to Top linkBookmark link 'Top' is broken in topic '{"project_id":"7d6ffa79-2ddc-4606-b774-a6a5d46784cd","entity_id":"3bbd1556-abdb-48a3-b249-546eace76343","entity_type":"Article","locale":"en-US"}'. Rebuilding the topic '{"project_id":"7d6ffa79-2ddc-4606-b774-a6a5d46784cd","entity_id":"3bbd1556-abdb-48a3-b249-546eace76343","entity_type":"Article","locale":"en-US"}' may solve the problem.

To view the job history log

  1. In Object Explorer, connect to an instance of Database Engine.

  2. On the Standard bar, click New Query.

  3. Copy and paste the following example into the query window and click Execute.

    -- lists all job information for the NightlyBackups job.
    USE msdb ;
    GO
    
    EXEC dbo.sp_help_jobhistory 
        @job_name = N'NightlyBackups' ;
    GO
    

For more information, see sp_help_jobhistory (Transact-SQL).

Arrow icon used with Back to Top linkBookmark link 'Top' is broken in topic '{"project_id":"7d6ffa79-2ddc-4606-b774-a6a5d46784cd","entity_id":"3bbd1556-abdb-48a3-b249-546eace76343","entity_type":"Article","locale":"en-US"}'. Rebuilding the topic '{"project_id":"7d6ffa79-2ddc-4606-b774-a6a5d46784cd","entity_id":"3bbd1556-abdb-48a3-b249-546eace76343","entity_type":"Article","locale":"en-US"}' may solve the problem.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft