Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch job information duration

Status
Not open for further replies.

desi5pure

MIS
Mar 29, 2008
38
0
0
US
We are using SQL 2000.
Where can I find (or set) how long job information is kept on jobhistory/sysjob tables? It seems information about some jobs is kept for months while others is only few days.
I want to look at old abends for few jobs.
 
Righty click SQL Server agent within Management folder and select properties, click job system tab and there you will find the setting you want, as default it will be set to 1000 rows.
 
Right click SQL Server agent within Management folder and select properties, click job system tab and there you will find the setting you want, as default it will be set to 1000 rows.
 
I found the settings and ours is set to 5000 and it seems that there is just one setting for the whole server and not individual settings for each job but I can't figure out why some jobs' history is there for months and others is there for only days?
 
The history is kept in

select * from msdb.dbo.sysjobhistory

If you want to keep specific history for a longer duration copy the data from here on a regular basis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top