Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.5 KB

resize-the-job-history-log.md

File metadata and controls

59 lines (40 loc) · 2.5 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.custom ms.topic helpviewer_keywords monikerRange
Resize the Job History Log
Resize the Job History Log
markingmyname
maghan
randolphwest
05/09/2022
sql
ssms
linux-related-content
how-to
jobs [SQL Server Agent], history
resizing job history log
size [SQL Server], job history log
logs [SQL Server], jobs
SQL Server Agent jobs, history
historical information [SQL Server], jobs
= azuresqldb-mi-current || >= sql-server-2016

Resize the job history log

[!INCLUDEapplies-to-version/_ssnoversion.md]

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 article describes how to set size limits for [!INCLUDEmsCoName] [!INCLUDEssNoVersion] Agent job history logs by using SQL Server Management Studio.

This feature doesn't work for [!INCLUDEsqlonlinux-md].

Security

For detailed information, see Implement SQL Server Agent Security.

Use SQL Server Management Studio

Resize the job history log based on raw size

  1. In Object Explorer, connect to an instance of the [!INCLUDEssDEnoversion], and then expand that instance.

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

  3. Select the History page, and then confirm that Limit size of job history log is 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.

Resize the job history log based on time

  1. In Object Explorer, connect to an instance of the [!INCLUDEssDEnoversion], and then expand that instance.

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

  3. Select the History page, and then select Remove agent history.

  4. Select the appropriate number of Days, Weeks, or Months.