How to: Resize the Job History Log (SQL Server Management Studio)

This topic describes how to set size limits for Microsoft SQL Server Agent job history logs.

To resize the job history log based on raw size

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

  2. Right-click SQL Server Agent, and then click Properties.

  3. Select the History page, and then confirm that Limit size of job history logis checked.

  4. In the Maximum job history log size box, enter the maximum number of rows the job history log should allow.

  5. 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

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

  2. Right-click SQL Server Agent, and then click Properties.

  3. Select the History page, and then click Automatically remove agent history.

  4. Select the appropriate number of Days(s), Week(s), or Month(s).

See Also

Concepts