Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Agent Job History Retention Issue Expand / Collapse
Author
Message
Posted Thursday, August 16, 2012 11:21 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Yesterday @ 10:07 AM
Points: 61, Visits: 267
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
Post #1346136
Posted Friday, August 17, 2012 3:00 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:15 AM
Points: 1,056, Visits: 2,687
[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
Post #1346402
Posted Friday, August 17, 2012 10:13 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Yesterday @ 10:07 AM
Points: 61, Visits: 267
Thanks Durai,

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

Regards,
Post #1346649
Posted Thursday, September 13, 2012 11:06 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, October 15, 2014 11:35 PM
Points: 24, Visits: 362
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.



Post #1358722
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse