Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 420
  • Last Modified:

I want to drop the just the Clustered Index on the Primary Key not the Primary Key itself.

I want to drop the just the Clustered Index on the Primary Key not the Primary Key itself.


I have read the third method on link: http://www.dbtalks.com/UploadFile/sapnabeniwal01/339/
0
Mr_Shaw
Asked:
Mr_Shaw
  • 3
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you cannot drop the index for a primary key.
you cannot change a clustered index to non-clustered without dropping it

conclusion:
you have to drop the primary key (and before that, any foreign keys pointing to it),
recreate the primary key with a non-clustered index
finally recreate the foreign keys dropped before
0
 
Mr_ShawAuthor Commented:
Is there a quick way which I can out all the foreign key which link to my primary key which I am going to drop?
0
 
Mr_ShawAuthor Commented:
I found a link to list all foreign keys.

http://www.mssqltips.com/tip.asp?tip=1151
0
 
Mr_ShawAuthor Commented:
thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now