<?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>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #008 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-397381</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #008 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 22 Dec 2012 01:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-397381</guid>
		<description><![CDATA[[...] Enabling Clustered and Non-Clustered Indexes – Interesting Fact When a clustered index is disabled, all the non-clustered indexes on the same tables are auto disabled as well. The user does not need to disable non-clustered index separately. However, when a clustered index is enabled, it does not automatically enable non-clustered index. All the non-clustered indexes need to be enabled individually. I wondered if there is any short cut to enable all the indexes together. Index rebuilding came to my mind instantly. I ran T-SQL command of rebuilding all the indexes and it enabled all the indexes on the table. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Enabling Clustered and Non-Clustered Indexes – Interesting Fact When a clustered index is disabled, all the non-clustered indexes on the same tables are auto disabled as well. The user does not need to disable non-clustered index separately. However, when a clustered index is enabled, it does not automatically enable non-clustered index. All the non-clustered indexes need to be enabled individually. I wondered if there is any short cut to enable all the indexes together. Index rebuilding came to my mind instantly. I ran T-SQL command of rebuilding all the indexes and it enabled all the indexes on the table. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VB</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-175565</link>
		<dc:creator><![CDATA[VB]]></dc:creator>
		<pubDate>Thu, 06 Oct 2011 06:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-175565</guid>
		<description><![CDATA[Great Post ! Thanks]]></description>
		<content:encoded><![CDATA[<p>Great Post ! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaikferozbasha</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-126987</link>
		<dc:creator><![CDATA[shaikferozbasha]]></dc:creator>
		<pubDate>Wed, 06 Apr 2011 11:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-126987</guid>
		<description><![CDATA[sir will u please help me to find the size of each nonclustered index in a table i got one query from u it showing the size of nonclustered index with the dataavailable in those columns but i need only size without data inthose indexes]]></description>
		<content:encoded><![CDATA[<p>sir will u please help me to find the size of each nonclustered index in a table i got one query from u it showing the size of nonclustered index with the dataavailable in those columns but i need only size without data inthose indexes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-112520</link>
		<dc:creator><![CDATA[jack]]></dc:creator>
		<pubDate>Fri, 21 Jan 2011 17:49:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-112520</guid>
		<description><![CDATA[u r best sir]]></description>
		<content:encoded><![CDATA[<p>u r best sir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NItin parthe</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-79422</link>
		<dc:creator><![CDATA[NItin parthe]]></dc:creator>
		<pubDate>Fri, 09 Jul 2010 12:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-79422</guid>
		<description><![CDATA[all Indexes also can be rebuild in this way


USE AdventureWorks; 
GO
DBCC DBREINDEX (&#039;HumanResources.Employee&#039;, &#039;&#039;, 70);
GO]]></description>
		<content:encoded><![CDATA[<p>all Indexes also can be rebuild in this way</p>
<p>USE AdventureWorks;<br />
GO<br />
DBCC DBREINDEX (&#8216;HumanResources.Employee&#8217;, &#8221;, 70);<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Disable Clustered Index and Data Insert Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-67659</link>
		<dc:creator><![CDATA[SQL SERVER – Disable Clustered Index and Data Insert Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Thu, 29 Apr 2010 03:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/21/sql-server-enabling-clustered-and-non-clustered-indexes-interesting-fact/#comment-67659</guid>
		<description><![CDATA[[...] SQL SERVER – Enabling Clustered and Non-Clustered Indexes – Interesting Fact [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER – Enabling Clustered and Non-Clustered Indexes – Interesting Fact [...]</p>
]]></content:encoded>
	</item>
	<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><![CDATA[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><![CDATA[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><![CDATA[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><![CDATA[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><![CDATA[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><![CDATA[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><![CDATA[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><![CDATA[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><![CDATA[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><![CDATA[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><![CDATA[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><![CDATA[Gr8 piece! Keep it up.]]></description>
		<content:encoded><![CDATA[<p>Gr8 piece! Keep it up.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
