Solved

SQL Agent job history

Posted on 2013-12-02
6
353 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
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.

 
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:
Scott Pletcher 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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.
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.
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, show how to setup several different housekeeping processes for a SQL Server.

809 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