<?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; Disable Index &#8211; Enable Index &#8211; ALTER Index</title>
	<atom:link href="http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/</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: SQL SERVER – How to Enable Index – How to Disable Index – Incorrect syntax near 'ENABLE' Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-57054</link>
		<dc:creator>SQL SERVER – How to Enable Index – How to Disable Index – Incorrect syntax near 'ENABLE' Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Tue, 27 Oct 2009 01:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-57054</guid>
		<description>[...] If you want to read just the syntax, I have written a similar article earlier SQL SERVER – Disable Index – Enable Index – ALTER Index. [...]</description>
		<content:encoded><![CDATA[<p>[...] If you want to read just the syntax, I have written a similar article earlier SQL SERVER – Disable Index – Enable Index – ALTER Index. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-54697</link>
		<dc:creator>Christoph</dc:creator>
		<pubDate>Mon, 10 Aug 2009 17:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-54697</guid>
		<description>“Disabling a clustered index on a table prevents access to the data; the data still remains in the table, but is unavailable for DML operations until the index is dropped or rebuilt.”

The clustered index determines in which order data is organized in the table&#039;s pages. Obviously, if you disable that index, no insert/delete operations can be possible, and all other indexes refer to bookmarks within the clustered indes.

Only when you drop the clustered index, the table becomes a pretty much unorganized heap, and all indexes are rebuilt to not refer to the clustered index anymore.</description>
		<content:encoded><![CDATA[<p>“Disabling a clustered index on a table prevents access to the data; the data still remains in the table, but is unavailable for DML operations until the index is dropped or rebuilt.”</p>
<p>The clustered index determines in which order data is organized in the table&#8217;s pages. Obviously, if you disable that index, no insert/delete operations can be possible, and all other indexes refer to bookmarks within the clustered indes.</p>
<p>Only when you drop the clustered index, the table becomes a pretty much unorganized heap, and all indexes are rebuilt to not refer to the clustered index anymore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-52072</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Tue, 19 May 2009 18:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-52072</guid>
		<description>I want to modify a column that has an index on it (2005 &amp; 2008).  I really don&#039;t want to drop the index but disabling it doesn&#039;t seem to be helping.  Is there a way to alter a column without dropping the index?</description>
		<content:encoded><![CDATA[<p>I want to modify a column that has an index on it (2005 &amp; 2008).  I really don&#8217;t want to drop the index but disabling it doesn&#8217;t seem to be helping.  Is there a way to alter a column without dropping the index?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-47210</link>
		<dc:creator>SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:08:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-47210</guid>
		<description>[...] SQL SERVER - Disable Index - Enable Index - ALTER Index [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; Disable Index &#8211; Enable Index &#8211; ALTER Index [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Annamalai</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-44714</link>
		<dc:creator>Annamalai</dc:creator>
		<pubDate>Thu, 11 Dec 2008 04:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-44714</guid>
		<description>I have table which has 16 lakhs records

i have to retrive the record below 4 seconds

now it is taking 20 seconds

i have created an index also for the id which has the primary key still this problem is there.

what should i have to do

please help me</description>
		<content:encoded><![CDATA[<p>I have table which has 16 lakhs records</p>
<p>i have to retrive the record below 4 seconds</p>
<p>now it is taking 20 seconds</p>
<p>i have created an index also for the id which has the primary key still this problem is there.</p>
<p>what should i have to do</p>
<p>please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Musab</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-44476</link>
		<dc:creator>Musab</dc:creator>
		<pubDate>Tue, 02 Dec 2008 07:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-44476</guid>
		<description>&quot;Disabling a clustered index on a table prevents access to the data; the data still remains in the table, but is unavailable for DML operations until the index is dropped or rebuilt.&quot;

From what I understand this means that when you disable the clustered index, the table becomes read-only.

It isn&#039;t very clear though: it says the disabled clustered index must be dropped or rebuilt in order for the data to become update able again. 

so, you need to drop the index to proceed.


Disabling a non-clustered index or clustered index on a view physically deletes the index data</description>
		<content:encoded><![CDATA[<p>&#8220;Disabling a clustered index on a table prevents access to the data; the data still remains in the table, but is unavailable for DML operations until the index is dropped or rebuilt.&#8221;</p>
<p>From what I understand this means that when you disable the clustered index, the table becomes read-only.</p>
<p>It isn&#8217;t very clear though: it says the disabled clustered index must be dropped or rebuilt in order for the data to become update able again. </p>
<p>so, you need to drop the index to proceed.</p>
<p>Disabling a non-clustered index or clustered index on a view physically deletes the index data</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish AGarwal</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-44230</link>
		<dc:creator>Manish AGarwal</dc:creator>
		<pubDate>Fri, 14 Nov 2008 21:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-44230</guid>
		<description>I am using Microsoft SQL server 2008. 
I am having trouble with this enable/disable option. 
I disabled clustered index that I created and then try to insert some data and got the error message. 

The query processor is unable to produce a plane because &quot;index_name&quot; on &quot;table_name&quot; is disabled. 

Does anybody has alternative for SQL server 2008? 

Thanks for help in advance. 
-Manish</description>
		<content:encoded><![CDATA[<p>I am using Microsoft SQL server 2008.<br />
I am having trouble with this enable/disable option.<br />
I disabled clustered index that I created and then try to insert some data and got the error message. </p>
<p>The query processor is unable to produce a plane because &#8220;index_name&#8221; on &#8220;table_name&#8221; is disabled. </p>
<p>Does anybody has alternative for SQL server 2008? </p>
<p>Thanks for help in advance.<br />
-Manish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish AGarwal</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-44229</link>
		<dc:creator>Manish AGarwal</dc:creator>
		<pubDate>Fri, 14 Nov 2008 21:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-44229</guid>
		<description>This is helpful. However , I believe that rebuilding an index willl reorganize the data again (with new inserts). Suppose if I have 10 crores of records. Will it take too long to enable the index. I have tested it and it takes about 3 hours for 10 crores of records. 
Also, if I do that it creates a huge log file , which takes a lot of space on server. 
Is there a way to deal with this?

Is that 

-Manish</description>
		<content:encoded><![CDATA[<p>This is helpful. However , I believe that rebuilding an index willl reorganize the data again (with new inserts). Suppose if I have 10 crores of records. Will it take too long to enable the index. I have tested it and it takes about 3 hours for 10 crores of records.<br />
Also, if I do that it creates a huge log file , which takes a lot of space on server.<br />
Is there a way to deal with this?</p>
<p>Is that </p>
<p>-Manish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-42165</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Fri, 29 Aug 2008 14:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-42165</guid>
		<description>@ Ankur,

I may be wrong but this is what I think. 

The script just talks about index and on which table, no where it discuss columns.

You are talking about composite primary keys. One primary key will have only one clustered indexes no matter if it has one column or more than one column.

I dont think the script given by Pinal dave will change for a single column primary key or composite Primary key ( more than one column). 

It makes sense to me, because no where in the script we mentioned column name, only two names are mentioned.,

1. one is index name 
2. other is table name ( owner.table_name).

Hope this helps.
Imran.</description>
		<content:encoded><![CDATA[<p>@ Ankur,</p>
<p>I may be wrong but this is what I think. </p>
<p>The script just talks about index and on which table, no where it discuss columns.</p>
<p>You are talking about composite primary keys. One primary key will have only one clustered indexes no matter if it has one column or more than one column.</p>
<p>I dont think the script given by Pinal dave will change for a single column primary key or composite Primary key ( more than one column). </p>
<p>It makes sense to me, because no where in the script we mentioned column name, only two names are mentioned.,</p>
<p>1. one is index name<br />
2. other is table name ( owner.table_name).</p>
<p>Hope this helps.<br />
Imran.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankur</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-42157</link>
		<dc:creator>Ankur</dc:creator>
		<pubDate>Fri, 29 Aug 2008 09:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-42157</guid>
		<description>Hi ,
I want to disable a Primary Key Clustered Index made on five columns :
CREATE CLUSTERED INDEX PK_ArrangementMeasure ArrangementMeasure(ArrangementOID, ArrangementMeasureTypeOID, UnitOfMeasureOID,MeasurementEventOID,SourceSystemImplementationOID)
before a target table update/insert of 24 lakh/2 million records. Beacuse your command is useful for disabling index on 1 column how to do it for more thn one column…Early reply will be appreciated. Thank u.Please mail soln at my yahoo id ankur_argal@yahoo.com</description>
		<content:encoded><![CDATA[<p>Hi ,<br />
I want to disable a Primary Key Clustered Index made on five columns :<br />
CREATE CLUSTERED INDEX PK_ArrangementMeasure ArrangementMeasure(ArrangementOID, ArrangementMeasureTypeOID, UnitOfMeasureOID,MeasurementEventOID,SourceSystemImplementationOID)<br />
before a target table update/insert of 24 lakh/2 million records. Beacuse your command is useful for disabling index on 1 column how to do it for more thn one column…Early reply will be appreciated. Thank u.Please mail soln at my yahoo id <a href="mailto:ankur_argal@yahoo.com">ankur_argal@yahoo.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shinto Govind</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-33090</link>
		<dc:creator>Shinto Govind</dc:creator>
		<pubDate>Fri, 18 Jan 2008 10:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-33090</guid>
		<description>Hi Dave,

       How to disable the index in SQL 2000?I tried alter index,but it didn&#039;t work.Please help me on this matter.

I would like to know that what is the difference between index and nonclustered  index?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>       How to disable the index in SQL 2000?I tried alter index,but it didn&#8217;t work.Please help me on this matter.</p>
<p>I would like to know that what is the difference between index and nonclustered  index?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-20020</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Thu, 15 Nov 2007 13:24:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-20020</guid>
		<description>Pls, help me!

I tried to convert all CHAR columns of a DB to VARCHAR in MS SQL-2000. 

But because of the dependece of indexes my procedure fails.
If I drop the idx-es I don&#039;t know how to create them back with all the previous atributes.

How can I just disable the idx-es and afterwords enable them?
If Iknow well, ALTER INDEX...DISABLE exists only in MS SQL-2005.

Thanks!</description>
		<content:encoded><![CDATA[<p>Pls, help me!</p>
<p>I tried to convert all CHAR columns of a DB to VARCHAR in MS SQL-2000. </p>
<p>But because of the dependece of indexes my procedure fails.<br />
If I drop the idx-es I don&#8217;t know how to create them back with all the previous atributes.</p>
<p>How can I just disable the idx-es and afterwords enable them?<br />
If Iknow well, ALTER INDEX&#8230;DISABLE exists only in MS SQL-2005.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jignesh Thanki</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-17818</link>
		<dc:creator>Jignesh Thanki</dc:creator>
		<pubDate>Wed, 07 Nov 2007 11:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-17818</guid>
		<description>&quot;ALTER INDEX&quot;

won&#039;t work with SQL 2000</description>
		<content:encoded><![CDATA[<p>&#8220;ALTER INDEX&#8221;</p>
<p>won&#8217;t work with SQL 2000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-14821</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 05 Oct 2007 08:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/17/sql-server-disable-index-enable-index-alter-index/#comment-14821</guid>
		<description>If i disable an index and import a load of data, will the indexes:
        - re-index when i re-enable the index
       - re-index as the data is importing even though        they&#039;re disabled
       - or do they not reindex until a dbreindex / alter table command is submitted

??

thanks</description>
		<content:encoded><![CDATA[<p>If i disable an index and import a load of data, will the indexes:<br />
        &#8211; re-index when i re-enable the index<br />
       &#8211; re-index as the data is importing even though        they&#8217;re disabled<br />
       &#8211; or do they not reindex until a dbreindex / alter table command is submitted</p>
<p>??</p>
<p>thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
