Solved

increase sql server agent job history

Posted on 2014-04-21
3
285 Views
Last Modified: 2015-04-05
I have a SQL Server Agent job (i.e. a Log Shipping SQL Server Agent Job) that only sustains 2.75-hours (about 15-rows) of history, despite the job properties:

01. Limit size of job history log / Maximum job history log size (in rows): 1000
02. Maximum job history rows per-job: 100
03. Remove agent history (nothing is selected)

The machine is SQL Server 2008 R2SP2. I need to increase that value to 2-weeks. How can I do that? Where would this limit be set?

Thanks,

pae2
0
Comment
Question by:pae2
3 Comments
 
LVL 23

Expert Comment

by:Michael74
Comment Utility
This could be caused by another job filling the table. Have a look at this link for how to investigate this

http://databasebestpractices.com/sql-server-agent-job-history-lost-populating/

Michael
0
 
LVL 8

Expert Comment

by:Narender Gakka
Comment Utility
0
 
LVL 69

Accepted Solution

by:
ScottPletcher earned 500 total points
Comment Utility
>> 01. Limit size of job history log / Maximum job history log size (in rows): 1000 <<
Increase this value a lot, to 20,000 for example.


>> 02. Maximum job history rows per-job: 100 <<
Increase this value a lot, to 2,000 for example.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now