<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Stop Shrinking Your Database Files. Seriously. Now.</title>
	<atom:link href="http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/</link>
	<description>SQL Server MCM and MVP, performance tuning, consulting, training, and community building.</description>
	<lastBuildDate>Sun, 05 Sep 2010 19:47:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Making the best use out of Mainenance Plans on SQL Server &#171; Raymund Macaalay&#039;s Dev Blog</title>
		<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/#comment-22910</link>
		<dc:creator>Making the best use out of Mainenance Plans on SQL Server &#171; Raymund Macaalay&#039;s Dev Blog</dc:creator>
		<pubDate>Sun, 29 Aug 2010 11:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=4741#comment-22910</guid>
		<description>[...] http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/" rel="nofollow">http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Resolving Very Large MSDB &#8211; JohnSterrett.com</title>
		<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/#comment-22428</link>
		<dc:creator>Resolving Very Large MSDB &#8211; JohnSterrett.com</dc:creator>
		<pubDate>Mon, 26 Jul 2010 17:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=4741#comment-22428</guid>
		<description>[...] recommend never shrinking database files.  I am not alone on this.  If you need more reasons check here (If you don’t like that example see the ones used in that [...]</description>
		<content:encoded><![CDATA[<p>[...] recommend never shrinking database files.  I am not alone on this.  If you need more reasons check here (If you don’t like that example see the ones used in that [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Randal</title>
		<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/#comment-19993</link>
		<dc:creator>Paul Randal</dc:creator>
		<pubDate>Fri, 23 Apr 2010 18:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=4741#comment-19993</guid>
		<description>Respectfully, your senior DBA doesn&#039;t know what he&#039;s talking about. Senior != knowledgeable.

Look in the Best Practices section of http://msdn.microsoft.com/en-us/library/ms190488.aspx that I put in when I owned the Storage Engine. Only reason shrink is still that way is that I never had time to rewrite it.</description>
		<content:encoded><![CDATA[<p>Respectfully, your senior DBA doesn&#8217;t know what he&#8217;s talking about. Senior != knowledgeable.</p>
<p>Look in the Best Practices section of <a href="http://msdn.microsoft.com/en-us/library/ms190488.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms190488.aspx</a> that I put in when I owned the Storage Engine. Only reason shrink is still that way is that I never had time to rewrite it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Das Fantom</title>
		<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/#comment-19988</link>
		<dc:creator>Das Fantom</dc:creator>
		<pubDate>Fri, 23 Apr 2010 14:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=4741#comment-19988</guid>
		<description>Hi Brent

OK, I&#039;m convinced.  I&#039;ve removed all the Shrink database statements from all my maintenance plans.  And when I check the DMV, I see that the indexes are indeed horribly fragmented.  

Now I have a problem.  My senior DBA says I should leave well alone - no-one is complaining and if it ain&#039;t broke, I shouldn&#039;t try to fix it.  Plus unless Microsoft says that Shrink Database is a bad idea, he doesn&#039;t believe it.  Can you point me to a MSDN source to back yourself up?</description>
		<content:encoded><![CDATA[<p>Hi Brent</p>
<p>OK, I&#8217;m convinced.  I&#8217;ve removed all the Shrink database statements from all my maintenance plans.  And when I check the DMV, I see that the indexes are indeed horribly fragmented.  </p>
<p>Now I have a problem.  My senior DBA says I should leave well alone &#8211; no-one is complaining and if it ain&#8217;t broke, I shouldn&#8217;t try to fix it.  Plus unless Microsoft says that Shrink Database is a bad idea, he doesn&#8217;t believe it.  Can you point me to a MSDN source to back yourself up?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GilaMonster</title>
		<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/#comment-17117</link>
		<dc:creator>GilaMonster</dc:creator>
		<pubDate>Fri, 29 Jan 2010 05:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=4741#comment-17117</guid>
		<description>Mixed data pages or mixed extents?

It&#039;s not just space at the end of the file that will be left out, it&#039;s unused extents anywhere in the file. Only way you&#039;ll get space saving in a backup after a shrink is if you have lots and lots and lots of partially allocated extents (blocks of 8 pages with &lt; 8 pages used by the table). 

Between the shrink and the index rebuild that you need to do after, you&#039;re probably spending more time doing the backup than if you just backed up normally.</description>
		<content:encoded><![CDATA[<p>Mixed data pages or mixed extents?</p>
<p>It&#8217;s not just space at the end of the file that will be left out, it&#8217;s unused extents anywhere in the file. Only way you&#8217;ll get space saving in a backup after a shrink is if you have lots and lots and lots of partially allocated extents (blocks of 8 pages with &lt; 8 pages used by the table). </p>
<p>Between the shrink and the index rebuild that you need to do after, you&#039;re probably spending more time doing the backup than if you just backed up normally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Randal</title>
		<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/#comment-17114</link>
		<dc:creator>Paul Randal</dc:creator>
		<pubDate>Fri, 29 Jan 2010 00:52:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=4741#comment-17114</guid>
		<description>Sean - what do you mean by &#039;mixed data pages&#039;? Shrink does not *ever* change the contents of pages that it&#039;s moving - except in the single case in 2005 onwards where it will compact LOB column storage space potentially. It will not reclaim space from data pages that have free space on them. Trust me on this - I wrote the DBCC code.

Do you mean that it reclaims empty pages from extents, thus compacting the table/index? Yes, it will do this, but at the expense of causing horrible index fragmentation.

To address another point - a backup not only does not include empty space at the end of the file, it also does not include unallocated extents spread throughout the file. An extent is only included in a backup if one or more pages in the extent are allocated.

Thanks</description>
		<content:encoded><![CDATA[<p>Sean &#8211; what do you mean by &#8216;mixed data pages&#8217;? Shrink does not *ever* change the contents of pages that it&#8217;s moving &#8211; except in the single case in 2005 onwards where it will compact LOB column storage space potentially. It will not reclaim space from data pages that have free space on them. Trust me on this &#8211; I wrote the DBCC code.</p>
<p>Do you mean that it reclaims empty pages from extents, thus compacting the table/index? Yes, it will do this, but at the expense of causing horrible index fragmentation.</p>
<p>To address another point &#8211; a backup not only does not include empty space at the end of the file, it also does not include unallocated extents spread throughout the file. An extent is only included in a backup if one or more pages in the extent are allocated.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/#comment-17112</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Fri, 29 Jan 2010 00:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=4741#comment-17112</guid>
		<description>Brent, take a look at my resonse to GilaMonster&#039;s post below.  In this case we are talking about optimizing a database for network copying and restoring remotley.   After some tables were &#039;partitioned&#039; (i.e. relocated) there was space in the database left on mixed data pages.  Shrinkdb does fix this and will make for a smaller backup.

I cant get my infrastructure guy to spring for litespeed and 2008 is still a year a way for us, so no I dont the benifit of streaming compression during the backups. Instead there are ugly scripts that gunzip them after the backups are complete. =(</description>
		<content:encoded><![CDATA[<p>Brent, take a look at my resonse to GilaMonster&#8217;s post below.  In this case we are talking about optimizing a database for network copying and restoring remotley.   After some tables were &#8216;partitioned&#8217; (i.e. relocated) there was space in the database left on mixed data pages.  Shrinkdb does fix this and will make for a smaller backup.</p>
<p>I cant get my infrastructure guy to spring for litespeed and 2008 is still a year a way for us, so no I dont the benifit of streaming compression during the backups. Instead there are ugly scripts that gunzip them after the backups are complete. =(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/#comment-17110</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Thu, 28 Jan 2010 23:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=4741#comment-17110</guid>
		<description>I knew this question was next.  =)  In my case, I had migrated some tables to a new database, replaced them with a view that points to the new db and then shrinkdb.  It was useful in this case to rearrange the data pages after large deletes.  This turned into a sort custom partitioning scheme on 500 gb db that is backed up and copied to a test environment periodically.  This provided a smaller db footprint, and yes a smalller backup that was easier to copy over the network.

You are correct in that a backup does not include the empty space at the end of the file.  That is true.  But after large deletes where free space is now scattered over mixed data pages, only a shrindb will free this space. And without it , yes your backup is larger.</description>
		<content:encoded><![CDATA[<p>I knew this question was next.  =)  In my case, I had migrated some tables to a new database, replaced them with a view that points to the new db and then shrinkdb.  It was useful in this case to rearrange the data pages after large deletes.  This turned into a sort custom partitioning scheme on 500 gb db that is backed up and copied to a test environment periodically.  This provided a smaller db footprint, and yes a smalller backup that was easier to copy over the network.</p>
<p>You are correct in that a backup does not include the empty space at the end of the file.  That is true.  But after large deletes where free space is now scattered over mixed data pages, only a shrindb will free this space. And without it , yes your backup is larger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GilaMonster</title>
		<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/#comment-17096</link>
		<dc:creator>GilaMonster</dc:creator>
		<pubDate>Thu, 28 Jan 2010 12:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=4741#comment-17096</guid>
		<description>How does shrinking reduce the size of backups? A backup only backs up used space, free space within the data file is not included in the backups.</description>
		<content:encoded><![CDATA[<p>How does shrinking reduce the size of backups? A backup only backs up used space, free space within the data file is not included in the backups.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent Ozar</title>
		<link>http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/#comment-17095</link>
		<dc:creator>Brent Ozar</dc:creator>
		<pubDate>Thu, 28 Jan 2010 12:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.brentozar.com/?p=4741#comment-17095</guid>
		<description>Sean - I agree with you on most of it, but I&#039;m curious about this one:

&quot;I&#039;ve also used it after partitioning to reduce the size of backups.&quot;

I&#039;m curious - do you use any backup compression products like LiteSpeed?  If so, they don&#039;t back up empty space in the database, so it won&#039;t matter whether the database is shrunk or not - the backup will still be the same size.  I haven&#039;t done a native backup of a large database in quite a while, so I&#039;m not even sure if this is true with native backups either.</description>
		<content:encoded><![CDATA[<p>Sean &#8211; I agree with you on most of it, but I&#8217;m curious about this one:</p>
<p>&#8220;I&#8217;ve also used it after partitioning to reduce the size of backups.&#8221;</p>
<p>I&#8217;m curious &#8211; do you use any backup compression products like LiteSpeed?  If so, they don&#8217;t back up empty space in the database, so it won&#8217;t matter whether the database is shrunk or not &#8211; the backup will still be the same size.  I haven&#8217;t done a native backup of a large database in quite a while, so I&#8217;m not even sure if this is true with native backups either.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 8/13 queries in 0.013 seconds using disk
Object Caching 395/398 objects using disk
Content Delivery Network via Amazon Web Services: CloudFront: Amazon Web Services: S3: d329fn540v13gd.cloudfront.net

Served from: www.brentozar.com @ 2010-09-06 12:02:29 -->