Solved

SQL Agent job history

Posted on 2013-12-02
6
347 Views
Last Modified: 2014-01-14
Does the SQL Agent job history change if there is a modification to the job, and in what cases does an agent job purge its history?
0
Comment
Question by:Steve Samson
6 Comments
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 39690314
History information can be viewd from SSMS by
right click on sql server agent -> properties -> History
 You can see the default options there, usually we purge the history every 4 weeks
0
 
LVL 10

Expert Comment

by:PadawanDBA
ID: 39690341
If you'd like to play around with the history in a more flexible manner than SSMS, the histories are available in the msdb table: sysjobhistory (http://technet.microsoft.com/en-us/library/ms174997.aspx).  The purge options are rather inflexible, so a lot of places will write their own sp/job to purge the history (or archive it elsewhere).
0
 

Author Comment

by:Steve Samson
ID: 39690351
is there a way to see if or who purged the log history? I do not purge my logs automatically.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 39690372
>is there a way to see if or who purged the log history?
Unless you have some sort of auditing enabled on your server, it wont be really an easy thing to find out.
0
 
LVL 69

Accepted Solution

by:
ScottPletcher earned 500 total points
ID: 39692439
It's very likely that the default settings caused SQL to purge the job history.  The default is to keep a very small total number of rows in history.
0
 

Author Closing Comment

by:Steve Samson
ID: 39780057
Outstanding found the proplenm in the job properties
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

757 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

18 Experts available now in Live!

Get 1:1 Help Now