SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 
        
Home       Members    Calendar    Who's On



Log File Viewer: Job History vs. Maintenance Plans Expand / Collapse
Author
Message
Posted Monday, August 18, 2008 11:07 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Friday, June 12, 2009 3:19 PM
Points: 311, Visits: 392
Greetings,

I have 2 maintenance plans (1 for user and 1 for system databases) running backups, DBCC checks, index reorgs and cleanup. There seems to be different amounts of history depending on where I look.

Log File Viewer: Job History
From SSMS I expand SQL Server Agent > Jobs and right click on one of the 3 jobs (Daily, Weekly and Hourly) for the user databases and select View History. In this view I can choose from 3 selections (Database Mail, Job History and SQL Agent)

Log File Viewer: Maintenance Plans
From SSMS I expand Management > Maintenance Plans and right click on User Database and select View History. In this view I can choose from 4 selections (Database Mail, Job History, Maintenance Plans and SQL Agent).

The Job History path only shows me the last 3 hours of activity. Maintenance Plans path shows me the history for the past 4 weeks. Why are these returning different results? Are my maintenance plans not witting to the job history correctly?

SQL Version: 9.0.3042

Thanks!
Post #554478
Posted Monday, August 18, 2008 11:49 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 10:24 AM
Points: 6,301, Visits: 5,577
Under SQL Server Agent Properties -> History you can specify how much history you want to keep for job execution. By default it is 1000 total rows with 100 rows per job, so you are probably going over this. This data is stored in msdb.dbo.sysjobhistory and the maintenance plan data is stored in sdb. dbo.sysdbmaintplan_history.



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
Post #554491
« Prev Topic | Next Topic »


Permissions Expand / Collapse