Set Up the Job History Log
Applies to: SQL Server Azure SQL Managed Instance
Important
On Azure SQL Managed Instance, most, but not all SQL Server Agent features are currently supported. See Azure SQL Managed Instance T-SQL differences from SQL Server for details.
This topic describes how to set up the Microsoft SQL Server Agent job history log.
Before you begin: Security
To setup the job history log, using: SQL Server Management Studio
Before You Begin
Security
For detailed information, see Implement SQL Server Agent Security.
Using SQL Server Management Studio
To set up the job history log
In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.
Right-click SQL Server Agent, and then click Properties.
In the SQL Server Agent Properties dialog box, select the History page.
Choose from the following options:
Check Limit size of job history log, and then type the maximum number of rows for the job history log, and the maximum number of rows per job.
Check Automatically remove agent history, and specify a time period, such that history older than this period will be purged from the log.