Resize the Job History Log
This topic describes how to set size limits for Microsoft SQL Server Agent job history logs in SQL Server 2012 by using SQL Server Management Studio.
Before you begin:
Security
To set size limits for job history logs, using:
SQL Server Management Studio
Before You Begin
Security
For detailed information, see Implement SQL Server Agent Security.
[Top]
Using SQL Server Management Studio
To resize the job history log based on raw size
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.
Select the History page, and then confirm that Limit size of job history logis checked.
In the Maximum job history log size box, enter the maximum number of rows the job history log should allow.
In the Maximum job history rows per job box, enter the maximum number of job history rows to allow for a job.
To resize the job history log based on time
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.
Select the History page, and then click Automatically remove agent history.
Select the appropriate number of Days(s), Week(s), or Month(s).
[Top]