Quantcast
Channel: Answers for "Limit sysjobhistory to number of executions per job"
Browsing all 3 articles
Browse latest View live

Answer by ThomasRushton

You might want to look at the system stored procedure [`sp_purge_jobhistory`][1] rather than doing the deletions manually. That is, at least, supported. You also ought to look at...

View Article



Answer by xnl28

You make a good point, Thomas - `sp_purge_jobhistory` will do the same sort of thing. I created a script to wrap up `sp_purge_jobhistory` in a loop to demonstrate the idea. While useful, this doesn't...

View Article

Answer by KenJ

Would your purge process only delete millions of rows the first time it was run, or do you generate millions of additional rows each day? I'm thinking you could skip the whole "load the temp table,...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images