Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

increase sql server agent job history

Posted on 2014-04-21
3
Medium Priority
?
494 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:Michael Fowler
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 70

Accepted Solution

by:
Scott Pletcher earned 2000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

824 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