Udostępnij za pośrednictwem


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.

Ikona strzałki używana z łączem Powrót na górę strony[Top]

Using SQL Server Management Studio

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

Ikona strzałki używana z łączem Powrót na górę strony[Top]