all groups > sql server dts > january 2007 >
You're in the

sql server dts

group:

Why SQL jobs keep losing thier job history



Why SQL jobs keep losing thier job history Mike Torry
1/25/2007 1:57:01 PM
sql server dts: My SQL jobs used keep their history on SQL Server 2000 MSDB. Recently all
jobs keep losing their job history. Each job only keep some history for very
short period.
Do you know why?

Thanks,

RE: Why SQL jobs keep losing thier job history Nigel Rivett
1/25/2007 4:35:00 PM
If you look at the agent properties there is a max total number of rows to
keep and a number per job - any more than that will be deleted.

I often implement a job to copy history rows to a table.

[quoted text, click to view]
RE: Why SQL jobs keep losing thier job history Todd C
1/26/2007 5:33:00 AM
Nigel:

Can you elaborate on how you would handle transferring history rows to a
table? I am in pretty much the same situation as Mike (Reporting Services
subscriptions and BizTalk processing jobs tend to fill up the job logs).

SSIS or some other easy to use command?
Where do we find the logs?
Does it matter where the table is stored?
How do I keep from adding the same row twice from the log to the table?

Much appreciated!
--
Todd Chittenden



[quoted text, click to view]
RE: Why SQL jobs keep losing thier job history Mike Torry
1/26/2007 4:43:47 PM
Thanks! It works!

Mike

[quoted text, click to view]
RE: Why SQL jobs keep losing thier job history Nigel Rivett
1/27/2007 2:35:00 PM
Have a look at msdb..sysjobhistory.
Just copy the contents to another table. You can use instance_id to only
copy those that you don't have.

I also copy some of sysjobs and sysjobsteps in case they get changed later.
You can ignore or delete later history for frequently running jobs that you
don't care aout.

[quoted text, click to view]
AddThis Social Bookmark Button