Avatar of Steve Samson
Steve Samson
 asked on

SQL Agent job history

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?
Microsoft DevelopmentMicrosoft SQL Server

Avatar of undefined
Last Comment
Steve Samson

8/22/2022 - Mon
Aneesh

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
PadawanDBA

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).
Steve Samson

ASKER
is there a way to see if or who purged the log history? I do not purge my logs automatically.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Aneesh

>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.
ASKER CERTIFIED SOLUTION
Scott Pletcher

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Steve Samson

ASKER
Outstanding found the proplenm in the job properties