Best Practices for SQL Server Agent Job History Retention
Category: Reliability
What is SQL Server Agent Job History Retention?
It will determine the amount of SQL Server’s Job History records before deleting them.
Agent job history is set to clear all history records when the history log reaches a certain number of lines by default.
Logs are useful for troubleshooting; having insufficient records makes it difficult to identify problems.
How to identify the problem and how to fix it?
- Connect to the SQL instance using SSMS (SQL Server Management Studio);
- Right-click on the SQL Server Agent and open properties;
Need expert support for SQL Server?
Our senior database team supports SQL Server performance tuning, health checks, migrations, Remote DBA services and urgent operational issues.
We recommend changing the maximum job history log size (in rows) to 50,000 and the maximum job history rows per job to 1,000.
Note: These numbers may vary depending on your business needs.
Related Reading
SQL Server Managed DBA Services
Let Us Handle Your Day-to-Day SQL Server Operations
Aryasoft’s Remote DBA team manages maintenance plans, job/agent administration and ongoing server operations proactively.

