Solved

increase sql server agent job history

Posted on 2014-04-21
3
358 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 23

Expert Comment

by:Michael74
ID: 40014022
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
ID: 40014053
0
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 500 total points
ID: 40015351
>> 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

751 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