January 16, 2009 at 4:56 am
how to drop the clustered index????
January 16, 2009 at 4:59 am
drop index tablename.indexname
But I suspect there maybe more to your question! Is this index used to support a primary key or unique constraint?
Mike John
January 16, 2009 at 5:00 am
Alter table
Alter table Table Name Drop Constraint ConstraintName
Check MSDN 🙂 for more information
January 16, 2009 at 5:23 am
CrazyMan (1/16/2009)
Alter tableAlter table Table Name Drop Constraint ConstraintName
True, if the clustered index is part of a primary key or unique constraint. If it's just a plain index, DROP INDEX is the command to use.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 16, 2009 at 5:28 am
it's a primary key clustered.. so wt would be the ans???
January 16, 2009 at 5:31 am
Alter table query stated by crazyman is your solution
-Vikas Bindra
January 16, 2009 at 5:32 am
You can use ALTER TABLE statment...
But why do you want to drop clustered index on PK? Is yous PK generaation not in order? Or want to created clustered index on other key columns?
Regards,
Nitin
January 16, 2009 at 5:38 am
satyawan_sanap (1/16/2009)
it's a primary key clustered.. so wt would be the ans???
ALTER TABLE YOUR_TABLE
DROP CONSTRAINT your_constraint_name
January 16, 2009 at 5:41 am
And be sure that you do not have any Foregin Key from other tables which is referenced to the PK ( Your Clustered Index)
October 7, 2013 at 11:21 pm
drop index indexname on tablename
October 8, 2013 at 1:14 am
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply