job history in SSMS is short..

is the longer history stored in a DMV?
Is there a setting to show/store more in the GUI SSMS also, for each job. ?
LVL 5
25112Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve WalesSenior Database AdministratorCommented:
There is a job history cleanup task in Maintenance Plans:

https://msdn.microsoft.com/en-us/library/ms186524.aspx

If this cleanup task is running on your server and set to X number of days, then you'll only find job history kept for X number of days, then it's purged.

If you want longer history kept, find out who controls the cleanup task and ask them to set retention for a longer period.
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Can you reformulate the question? I can't understand it.
0
25112Author Commented:
Steve, I don't see any under SSMS->Management->Maintenance Plans

Is there a way to confirm if this is running?

Vitor,

Under SSMS, under SQL Server Agent, and under Jobs, right click on a job and click 'history'.. sometimes you see only few history records, sometimes more.. I would like to know
1)the settings how to control this? How many gets displayed etc
2)The ones that are not displayed- are they stored/saved in any system view for historical analysis?
0
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Steve WalesSenior Database AdministratorCommented:
The maintenance plan is just one way of doing it.  There's a stored procedure that the maintenance wizard runs (sp_purge_jobhistory): https://msdn.microsoft.com/en-us/library/ms175044.aspx

Is it possible that there's a job running that called this stored procedure?
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
I understand now :)
You can configure the size of the history. Just go to SQL Server Agent and right-click on Properties then History and then you can set the new value:
SQLAgentProperty-History.PNG
0
25112Author Commented:
thank you. Is there a reason why 15000 was chosen. was it a random number or a logic behind it?
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
It's the default value from Microsoft. They maybe think that should be reasonable but at least they let us change their defaults :)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
25112Author Commented:
OK. good.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.