<?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: Shrinking databases</title>
	<atom:link href="http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/</link>
	<description>A discussion on SQL Server</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:50:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: GONZI</title>
		<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/comment-page-1/#comment-1967</link>
		<dc:creator>GONZI</dc:creator>
		<pubDate>Tue, 07 Feb 2012 09:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=27#comment-1967</guid>
		<description>Hi Gail,

wow thanks for the fast reply ;)
No i didn´t consider using a 3rd party tool that creates compresed backups, because i designed 3 Maintenance Plans doing FULL/DIFF/TRN backups.
I really have to check the performance while doing the restore .... because (as i said) the bak File is compressed and should be fast, there should be something wiht the Server.
I am going to check the Performance and write back.

Thanks for the Feedback!
greetings
GONZI</description>
		<content:encoded><![CDATA[<p>Hi Gail,</p>
<p>wow thanks for the fast reply <img src='http://sqlinthewild.co.za/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
No i didn´t consider using a 3rd party tool that creates compresed backups, because i designed 3 Maintenance Plans doing FULL/DIFF/TRN backups.<br />
I really have to check the performance while doing the restore &#8230;. because (as i said) the bak File is compressed and should be fast, there should be something wiht the Server.<br />
I am going to check the Performance and write back.</p>
<p>Thanks for the Feedback!<br />
greetings<br />
GONZI</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gail</title>
		<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/comment-page-1/#comment-1965</link>
		<dc:creator>Gail</dc:creator>
		<pubDate>Tue, 07 Feb 2012 08:36:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=27#comment-1965</guid>
		<description>I don&#039;t recommend keeping databases as small as possible, it&#039;s inefficient causing SQL to grow DBs more often than it should and has a whole set of issues.

If a 40GB backup takes an hour, I suggest checking the performance and throughput of the IO subsystem, I have before backed a 1TB database up in 10 hours uncompressed, 4 hours compressed.

Shrinking the DB before backup won&#039;t reduce the size of the backup or the time the backup takes, because a backup does not include empty space within the data file.

Have you considered a 3rd party tool that creates compressed backups?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t recommend keeping databases as small as possible, it&#8217;s inefficient causing SQL to grow DBs more often than it should and has a whole set of issues.</p>
<p>If a 40GB backup takes an hour, I suggest checking the performance and throughput of the IO subsystem, I have before backed a 1TB database up in 10 hours uncompressed, 4 hours compressed.</p>
<p>Shrinking the DB before backup won&#8217;t reduce the size of the backup or the time the backup takes, because a backup does not include empty space within the data file.</p>
<p>Have you considered a 3rd party tool that creates compressed backups?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GONZI</title>
		<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/comment-page-1/#comment-1964</link>
		<dc:creator>GONZI</dc:creator>
		<pubDate>Tue, 07 Feb 2012 08:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=27#comment-1964</guid>
		<description>so what do you recommend, for keeping the DB as small as possible? I have to restore a 40 GB big Database and it takes more than one hour :( (i even compressed the bak File).

I thought shrinking the data Files before i make my Backup, would speed up the restore afterwards!

thanks in advance</description>
		<content:encoded><![CDATA[<p>so what do you recommend, for keeping the DB as small as possible? I have to restore a 40 GB big Database and it takes more than one hour <img src='http://sqlinthewild.co.za/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  (i even compressed the bak File).</p>
<p>I thought shrinking the data Files before i make my Backup, would speed up the restore afterwards!</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gail</title>
		<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/comment-page-1/#comment-1314</link>
		<dc:creator>Gail</dc:creator>
		<pubDate>Mon, 27 Dec 2010 22:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=27#comment-1314</guid>
		<description>Maybe take this to a a forum (like SSC)? Blog comments not really the place to help out on a complex problem</description>
		<content:encoded><![CDATA[<p>Maybe take this to a a forum (like SSC)? Blog comments not really the place to help out on a complex problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun</title>
		<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/comment-page-1/#comment-1313</link>
		<dc:creator>Shaun</dc:creator>
		<pubDate>Mon, 27 Dec 2010 21:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=27#comment-1313</guid>
		<description>Yeah, don&#039;t think it&#039;s that. Used his script and don&#039;t see any ghost processing going on. Doing some more digging. Narrowed the growth down to a couple of filegroups which only contain indexes - and not ones on the created/dropped tables. Seeing some highly fragmented indexes there but not sure why that would cause file growth with empty space. Pages are fragmented, but pretty full. Will have to dig some more. Thanks for your help!</description>
		<content:encoded><![CDATA[<p>Yeah, don&#8217;t think it&#8217;s that. Used his script and don&#8217;t see any ghost processing going on. Doing some more digging. Narrowed the growth down to a couple of filegroups which only contain indexes &#8211; and not ones on the created/dropped tables. Seeing some highly fragmented indexes there but not sure why that would cause file growth with empty space. Pages are fragmented, but pretty full. Will have to dig some more. Thanks for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gail</title>
		<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/comment-page-1/#comment-1312</link>
		<dc:creator>Gail</dc:creator>
		<pubDate>Mon, 27 Dec 2010 21:29:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=27#comment-1312</guid>
		<description>Could be that the ghost cleanup&#039;s not keeping up with the deallocation of the pages. Drops complete immediatly, pages are deallocated in the background afterwards. 

Some stuff on Paul Randal&#039;s blog on ghost cleanup.</description>
		<content:encoded><![CDATA[<p>Could be that the ghost cleanup&#8217;s not keeping up with the deallocation of the pages. Drops complete immediatly, pages are deallocated in the background afterwards. </p>
<p>Some stuff on Paul Randal&#8217;s blog on ghost cleanup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun</title>
		<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/comment-page-1/#comment-1311</link>
		<dc:creator>Shaun</dc:creator>
		<pubDate>Mon, 27 Dec 2010 20:57:55 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=27#comment-1311</guid>
		<description>Interesting. I have a db where tables are created and deleted very frequently - like every minute or two. DB size kept growing. 60 GB db with 20 GB free space, yet the OS file size kept increasing (as did the free space). I&#039;ll be blogging about it in a couple weeks.</description>
		<content:encoded><![CDATA[<p>Interesting. I have a db where tables are created and deleted very frequently &#8211; like every minute or two. DB size kept growing. 60 GB db with 20 GB free space, yet the OS file size kept increasing (as did the free space). I&#8217;ll be blogging about it in a couple weeks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gail</title>
		<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/comment-page-1/#comment-1309</link>
		<dc:creator>Gail</dc:creator>
		<pubDate>Mon, 27 Dec 2010 17:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=27#comment-1309</guid>
		<description>SQL can and does reuse the space that was made available by dropping tables. 

What it won&#039;t do automatically is release that space to the OS. That&#039;s what shrinking does, and you don&#039;t have to do it, in most cases you shouldn&#039;t do it.</description>
		<content:encoded><![CDATA[<p>SQL can and does reuse the space that was made available by dropping tables. </p>
<p>What it won&#8217;t do automatically is release that space to the OS. That&#8217;s what shrinking does, and you don&#8217;t have to do it, in most cases you shouldn&#8217;t do it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun</title>
		<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/comment-page-1/#comment-1308</link>
		<dc:creator>Shaun</dc:creator>
		<pubDate>Mon, 27 Dec 2010 16:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=27#comment-1308</guid>
		<description>Any idea why SQL can&#039;t reuse the space used by tables that were created then dropped and we have to shrink the DB instead?</description>
		<content:encoded><![CDATA[<p>Any idea why SQL can&#8217;t reuse the space used by tables that were created then dropped and we have to shrink the DB instead?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://sqlinthewild.co.za/index.php/2007/09/08/shrinking-databases/comment-page-1/#comment-717</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 28 Sep 2010 21:03:45 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=27#comment-717</guid>
		<description>Auto-shrink is default off. Just logically thinking auto-growth is default on, definitely auto-shrink should be off. You should index defrag no matter you shrink or not. There are times shrink makes huge sense especially when you see the sapce removed is not coming back. Run index defrag after shrink, not before shrink. When I shrink, depending on scenario, I always shrink to extra 20% (automatic script generation) and I always know it is not the space that going to immediately grow back. Run shrink before index rebuild/reorg. When you have unlimited space, you don&#039;t even need to shrink. We lease space so I am saving company money by maintaining a good balance.</description>
		<content:encoded><![CDATA[<p>Auto-shrink is default off. Just logically thinking auto-growth is default on, definitely auto-shrink should be off. You should index defrag no matter you shrink or not. There are times shrink makes huge sense especially when you see the sapce removed is not coming back. Run index defrag after shrink, not before shrink. When I shrink, depending on scenario, I always shrink to extra 20% (automatic script generation) and I always know it is not the space that going to immediately grow back. Run shrink before index rebuild/reorg. When you have unlimited space, you don&#8217;t even need to shrink. We lease space so I am saving company money by maintaining a good balance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

