<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Enabling Clustered and Non-Clustered Indexes &#8211; Interesting Fact</title>
	<atom:link href="http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nishant</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-50099</link>
		<dc:creator>Nishant</dc:creator>
		<pubDate>Fri, 27 Mar 2009 08:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-50099</guid>
		<description>Hi, could you Please tell me , actually mai i have done MCA in 2008 and presently i am working in sqlserver 2005 as a developer in a small comany  and i want adwise from your side about my carear and i want to get a specifice  certifecation in database so plz tell me it is posible to get certifection and my maine role in my company as trainee ..</description>
		<content:encoded><![CDATA[<p>Hi, could you Please tell me , actually mai i have done MCA in 2008 and presently i am working in sqlserver 2005 as a developer in a small comany  and i want adwise from your side about my carear and i want to get a specifice  certifecation in database so plz tell me it is posible to get certifection and my maine role in my company as trainee ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crosby</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-45919</link>
		<dc:creator>Crosby</dc:creator>
		<pubDate>Fri, 23 Jan 2009 03:51:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-45919</guid>
		<description>I recently came across this need to disable all indexes for a massive data load.  We do it nightly, so I&#039;m interested in scripting this.  When I try:
ALTER INDEX ALL ON Production.Product DISABLE

that works great, except that it also disables my PK index, which I don&#039;t want to do, and which I don&#039;t want to rebuild.

I&#039;m wondering if there is an equivalent:
ALTER INDEX ALL_EXCEPT_PK ON Production.Product DISABLE

and, likewise:
ALTER INDEX ALL_EXCEPT_PK ON Production.Product REBUILD

Maybe I&#039;ll have to start writing SP&#039;s to do this from the meta data, but I&#039;d hoped someone else might have thought of this already?

thanks!</description>
		<content:encoded><![CDATA[<p>I recently came across this need to disable all indexes for a massive data load.  We do it nightly, so I&#8217;m interested in scripting this.  When I try:<br />
ALTER INDEX ALL ON Production.Product DISABLE</p>
<p>that works great, except that it also disables my PK index, which I don&#8217;t want to do, and which I don&#8217;t want to rebuild.</p>
<p>I&#8217;m wondering if there is an equivalent:<br />
ALTER INDEX ALL_EXCEPT_PK ON Production.Product DISABLE</p>
<p>and, likewise:<br />
ALTER INDEX ALL_EXCEPT_PK ON Production.Product REBUILD</p>
<p>Maybe I&#8217;ll have to start writing SP&#8217;s to do this from the meta data, but I&#8217;d hoped someone else might have thought of this already?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-30817</link>
		<dc:creator>pinaldave</dc:creator>
		<pubDate>Wed, 02 Jan 2008 06:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-30817</guid>
		<description>Hi Greg Low, 

That is great information.

Regards,
Pinal Dave ( http://www.SQLAuthority.com )</description>
		<content:encoded><![CDATA[<p>Hi Greg Low, </p>
<p>That is great information.</p>
<p>Regards,<br />
Pinal Dave ( <a href="http://www.SQLAuthority.com" rel="nofollow">http://www.SQLAuthority.com</a> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Low</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-30815</link>
		<dc:creator>Greg Low</dc:creator>
		<pubDate>Wed, 02 Jan 2008 05:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-30815</guid>
		<description>The leaf level of each non-clustered index holds the clustering key (if you have a clustered index). So if you disable the clustered index, the non-clustered indexes wouldn&#039;t be pointing to data (as they would be if you had a heap instead), they&#039;d be pointing to the disabled index. It wouldn&#039;t make sense to leave any non-clustered indexes enabled if you disable a clustered index. The behaviour is completely sensible.

HTH,

Regards,

Greg</description>
		<content:encoded><![CDATA[<p>The leaf level of each non-clustered index holds the clustering key (if you have a clustered index). So if you disable the clustered index, the non-clustered indexes wouldn&#8217;t be pointing to data (as they would be if you had a heap instead), they&#8217;d be pointing to the disabled index. It wouldn&#8217;t make sense to leave any non-clustered indexes enabled if you disable a clustered index. The behaviour is completely sensible.</p>
<p>HTH,</p>
<p>Regards,</p>
<p>Greg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emeka</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-30750</link>
		<dc:creator>Emeka</dc:creator>
		<pubDate>Wed, 02 Jan 2008 00:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-30750</guid>
		<description>Hi Pinal,

To enable all the indexes together, run the Alter Index All command. eg

 &quot;ALTER INDEX ALL ON Production.Product REBUILD&quot;
The above command will rebuild  and enable all indexes that has been disabled.</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>To enable all the indexes together, run the Alter Index All command. eg</p>
<p> &#8220;ALTER INDEX ALL ON Production.Product REBUILD&#8221;<br />
The above command will rebuild  and enable all indexes that has been disabled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Popo</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-28153</link>
		<dc:creator>Popo</dc:creator>
		<pubDate>Sat, 22 Dec 2007 02:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-28153</guid>
		<description>Gr8 piece! Keep it up.</description>
		<content:encoded><![CDATA[<p>Gr8 piece! Keep it up.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
