How to change a primary clustered index to become an index without clustering. (Being a "secondary" table, I want to use an indexed index for the foreign key column of the header table.)
This does not work for me (the error seems reasonable :)
DROP INDEX ClientUsers.PK_ClientUsers CREATE UNIQUE CLUSTERED INDEX IDX_ClientUsers_Id ON ClientUsers(Id) Msg 3723, Level 16, State 4, Line 7 An explicit DROP INDEX is not allowed on index 'ClientUsers.PK_ClientUsers'. It is being used for PRIMARY KEY constraint enforcement.
source share