<?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: Removing Columns</title>
	<atom:link href="http://michaeljswart.com/?feed=rss2&#038;p=533" rel="self" type="application/rss+xml" />
	<link>http://michaeljswart.com/?p=533</link>
	<description>Database Whisperer</description>
	<lastBuildDate>Mon, 06 Sep 2010 00:56:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Benjamin Lotter</title>
		<link>http://michaeljswart.com/?p=533&#038;cpage=1#comment-1990</link>
		<dc:creator>Benjamin Lotter</dc:creator>
		<pubDate>Mon, 08 Feb 2010 14:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=533#comment-1990</guid>
		<description>Thanks for the article; it was new and vital information.  The only thing I can&#039;t agree with is the caption on your graphic.  For it wasn&#039;t the hair but the Spirit of God that gave Samson power to tear down those columns.
See Judges 16:28-30:
And Samson called unto the LORD, and said, O Lord God, remember me, I pray thee, and strengthen me, I pray thee, only this once, O God, that I may be at once avenged of the Philistines for my two eyes. And Samson took hold of the two middle pillars upon which the house stood, and on which it was borne up, of the one with his right hand, and of the other with his left. And Samson said, Let me die with the Philistines. And he bowed himself with all his might; and the house fell upon the lords, and upon all the people that were therein. So the dead which he slew at his death were more than they which he slew in his life.</description>
		<content:encoded><![CDATA[<p>Thanks for the article; it was new and vital information.  The only thing I can&#8217;t agree with is the caption on your graphic.  For it wasn&#8217;t the hair but the Spirit of God that gave Samson power to tear down those columns.<br />
See Judges 16:28-30:<br />
And Samson called unto the LORD, and said, O Lord God, remember me, I pray thee, and strengthen me, I pray thee, only this once, O God, that I may be at once avenged of the Philistines for my two eyes. And Samson took hold of the two middle pillars upon which the house stood, and on which it was borne up, of the one with his right hand, and of the other with his left. And Samson said, Let me die with the Philistines. And he bowed himself with all his might; and the house fell upon the lords, and upon all the people that were therein. So the dead which he slew at his death were more than they which he slew in his life.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael J. Swart</title>
		<link>http://michaeljswart.com/?p=533&#038;cpage=1#comment-1972</link>
		<dc:creator>Michael J. Swart</dc:creator>
		<pubDate>Sat, 06 Feb 2010 15:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=533#comment-1972</guid>
		<description>Mark, Brad, John, thanks for the feedback! It makes blogging worthwhile.</description>
		<content:encoded><![CDATA[<p>Mark, Brad, John, thanks for the feedback! It makes blogging worthwhile.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Sansom</title>
		<link>http://michaeljswart.com/?p=533&#038;cpage=1#comment-1968</link>
		<dc:creator>John Sansom</dc:creator>
		<pubDate>Sat, 06 Feb 2010 08:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=533#comment-1968</guid>
		<description>This is why I love SQL Server, you really do learn something new every day.

Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>This is why I love SQL Server, you really do learn something new every day.</p>
<p>Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Schulz</title>
		<link>http://michaeljswart.com/?p=533&#038;cpage=1#comment-1964</link>
		<dc:creator>Brad Schulz</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=533#comment-1964</guid>
		<description>Excellent stuff, Michael.  Really informative.</description>
		<content:encoded><![CDATA[<p>Excellent stuff, Michael.  Really informative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael J. Swart</title>
		<link>http://michaeljswart.com/?p=533&#038;cpage=1#comment-1963</link>
		<dc:creator>Michael J. Swart</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:27:07 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=533#comment-1963</guid>
		<description>Mark, that&#039;s an excellent question. 

A quick check tells me that it&#039;s the same story for heaps as it is for indexed tables. Except for the part about rebuilding indexes:

ALTER INDEX ALL ON NAME REBUILD;

While this command doesn&#039;t fail, it doesn&#039;t have any affect at all (because there are no indexes to rebuild). With heaps, new rows are still huge. Dropped columns are still there. Even if the table has non-clustered indexes against heaps. The dropped columns are still there.

The point is is that the index rebuild does the trick only when a table has a clustered index.

To the problem of reclaiming space used by dropped columns in heaps, I don&#039;t know what the solution is. One workaround is to create a clustered index for it. Even if it is temporary.</description>
		<content:encoded><![CDATA[<p>Mark, that&#8217;s an excellent question. </p>
<p>A quick check tells me that it&#8217;s the same story for heaps as it is for indexed tables. Except for the part about rebuilding indexes:</p>
<p>ALTER INDEX ALL ON NAME REBUILD;</p>
<p>While this command doesn&#8217;t fail, it doesn&#8217;t have any affect at all (because there are no indexes to rebuild). With heaps, new rows are still huge. Dropped columns are still there. Even if the table has non-clustered indexes against heaps. The dropped columns are still there.</p>
<p>The point is is that the index rebuild does the trick only when a table has a clustered index.</p>
<p>To the problem of reclaiming space used by dropped columns in heaps, I don&#8217;t know what the solution is. One workaround is to create a clustered index for it. Even if it is temporary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Vaillancourt</title>
		<link>http://michaeljswart.com/?p=533&#038;cpage=1#comment-1962</link>
		<dc:creator>Mark Vaillancourt</dc:creator>
		<pubDate>Fri, 05 Feb 2010 17:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=533#comment-1962</guid>
		<description>It would be interesting to discuss what happens with heaps, too.</description>
		<content:encoded><![CDATA[<p>It would be interesting to discuss what happens with heaps, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Vaillancourt</title>
		<link>http://michaeljswart.com/?p=533&#038;cpage=1#comment-1961</link>
		<dc:creator>Mark Vaillancourt</dc:creator>
		<pubDate>Fri, 05 Feb 2010 17:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=533#comment-1961</guid>
		<description>Great info, Michael. This is not something I had realized. Thanks.</description>
		<content:encoded><![CDATA[<p>Great info, Michael. This is not something I had realized. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Things I Read This Week &#124; Brent Ozar - Too Much Information</title>
		<link>http://michaeljswart.com/?p=533&#038;cpage=1#comment-1960</link>
		<dc:creator>Things I Read This Week &#124; Brent Ozar - Too Much Information</dc:creator>
		<pubDate>Fri, 05 Feb 2010 13:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://michaeljswart.com/?p=533#comment-1960</guid>
		<description>[...] Removing Columns Doesn&#8217;t Decrease Table Size &#8211; I read the title and I thought Michael Swart was pulling my leg.  The fact that I learned something by reading this makes me think I&#8217;m not ready for the MCM program.  I have moments like this whenever I read a bunch of blog posts in one sitting, and I&#8217;m glad Michael blogged this. [...]</description>
		<content:encoded><![CDATA[<p>[...] Removing Columns Doesn&#8217;t Decrease Table Size &#8211; I read the title and I thought Michael Swart was pulling my leg.  The fact that I learned something by reading this makes me think I&#8217;m not ready for the MCM program.  I have moments like this whenever I read a bunch of blog posts in one sitting, and I&#8217;m glad Michael blogged this. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
