<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Clean up the backup history</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/sql-server/clean-up-the-backup-history/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/sql-server/clean-up-the-backup-history/</link>
	<description></description>
	<pubDate>Tue, 24 Nov 2009 04:00:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: MikeWalshSQL</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/clean-up-the-backup-history/#comment-234</link>
		<dc:creator>MikeWalshSQL</dc:creator>
		<pubDate>Fri, 05 Jun 2009 13:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/?p=475#comment-234</guid>
		<description>I meant those tables not that table.</description>
		<content:encoded><![CDATA[<p>I meant those tables not that table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MikeWalshSQL</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/clean-up-the-backup-history/#comment-233</link>
		<dc:creator>MikeWalshSQL</dc:creator>
		<pubDate>Fri, 05 Jun 2009 12:59:35 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/?p=475#comment-233</guid>
		<description>Great Post Denny -

The only thing I would add is start small, test it out for performance and monitor what's going on.

When I had started at a place about 4 years ago I implemented some of the maintenance jobs that I do everyhwere (including backup history removal) and I kicked off a history cleanup. Without thinking I just put the date I wanted to delete until (wanted to keep msdb small, didn't really need that much history so went with 1 month rolling window)... Well there was a LOT of data to delete and it caused some significant performance issues which caused some really fun looking blocking chains.

This was on SQL 2000 and the code definitely changed (it used a cursor in 2000.. you can look at the difference if you do a helptext on the proc in 2000 and then in 2005/2008.. sp_helptext 'sp_delete_backuphistory'). Even in 2005, while it is now performing set based work it is still doing all of the deletes in one transaction. If you perform a lot of backups (log backups, anyone?) there can potentially be a lot of data in that table.</description>
		<content:encoded><![CDATA[<p>Great Post Denny -</p>
<p>The only thing I would add is start small, test it out for performance and monitor what&#8217;s going on.</p>
<p>When I had started at a place about 4 years ago I implemented some of the maintenance jobs that I do everyhwere (including backup history removal) and I kicked off a history cleanup. Without thinking I just put the date I wanted to delete until (wanted to keep msdb small, didn&#8217;t really need that much history so went with 1 month rolling window)&#8230; Well there was a LOT of data to delete and it caused some significant performance issues which caused some really fun looking blocking chains.</p>
<p>This was on SQL 2000 and the code definitely changed (it used a cursor in 2000.. you can look at the difference if you do a helptext on the proc in 2000 and then in 2005/2008.. sp_helptext &#8217;sp_delete_backuphistory&#8217;). Even in 2005, while it is now performing set based work it is still doing all of the deletes in one transaction. If you perform a lot of backups (log backups, anyone?) there can potentially be a lot of data in that table.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->