clusterd index

  • how to drop the clustered index????

  • 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

  • Alter table

    Alter table Table Name Drop Constraint ConstraintName

    Check MSDN 🙂 for more information

  • CrazyMan (1/16/2009)


    Alter table

    Alter 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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • it's a primary key clustered.. so wt would be the ans???

  • Alter table query stated by crazyman is your solution

    -Vikas Bindra

  • 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

  • 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

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • And be sure that you do not have any Foregin Key from other tables which is referenced to the PK ( Your Clustered Index)

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • drop index indexname on tablename

  • rajluves (10/7/2013)


    drop index indexname on tablename

    Incorrect answer to a 5 year old post.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

Viewing 11 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic. Login to reply