Solved

increase sql server agent job history

Posted on 2014-04-21
3
321 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Generate Scripts Fails 5 36
SQL SELECT query help 7 42
sql server query 6 11
How to make a stored procedure return two values 5 14
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Viewers will learn how the fundamental information of how to create a table.
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.

825 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