SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Agent Job History Retention Issue


SQL Agent Job History Retention Issue

Author
Message
pawana.paul
pawana.paul
SSC-Enthusiastic
SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)

Group: General Forum Members
Points: 125 Visits: 354
I have seen strange issue pertaining to Retention of Job history on one of the production server.

1. Job is SQL Server Agent Job, this is not created through Maintenance Plan.
2. Limit size of Job History Log (Log Size in rows and rows per job) is set to max 999999.
3. I want to retain for 3 weeks.
4. The history is available for only 2 days.
5. There are only 6 jobs, the total number of rows including all jobs in History are less than 500.
6. Automatically remove agent history is not working properly. Even I set it, when I close SQL Server Agent Properties window and reopen. The setting whatever I set will not remain same. That checkbox will be unchecked automatically.

Thanks in advance.

Regards
durai nagarajan
durai nagarajan
SSCommitted
SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)SSCommitted (1.6K reputation)

Group: General Forum Members
Points: 1611 Visits: 2775
[b]pawana.paul (8/16/2012)2. Limit size of Job History Log (Log Size in rows and rows per job) is set to max 999999.


If you set Log Size in rows and rows per job both to 999999.

If any of the jobs are running regulary every 15 minutes or lesser will have more log that the less frequent jobs.

Reduce rows per job to the level you want and try.

Regards
Durai Nagarajan
pawana.paul
pawana.paul
SSC-Enthusiastic
SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)SSC-Enthusiastic (125 reputation)

Group: General Forum Members
Points: 125 Visits: 354
Thanks Durai,

I have made the changes and will monitor on Monday and update you on the same.

Regards,
tplas
tplas
SSC Rookie
SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)

Group: General Forum Members
Points: 26 Visits: 383
Also note an interesting quirk-- The option for "Remove agent history" is _NOT_ actually a setting that you're making.

Instead, it's actually just a request, to be executed immediately when you hit OK, to remove "X" days/weeks of agent history.

Really bad UI design on that one, I'd say.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search