Log in
::
Register
::
Not logged in
Search:
Home
Articles
Editorials
Forums
Scripts
Blogs
QotD
Books
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Advertise
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
Log File Viewer: Job History vs. Maintenance...
Log File Viewer: Job History vs. Maintenance Plans
Rate Topic
Display Mode
Topic Options
Author
Message
Tim Peters
Tim Peters
Posted Monday, August 18, 2008 11:07 AM
Old 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
Jack Corbett
Jack Corbett
Posted Monday, August 18, 2008 11:49 AM
SSCertifiable
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
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
may
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2009 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use