如何更改主羣集索引以成爲非羣集索引。 (作爲一個「次要」的表我想用clustured指數爲「頭」表的外鍵列。)SQL Server:將羣集主索引更改爲非羣集
這doen't工作對我來說(錯誤似乎是合理的:)
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.
您是否嘗試先放棄主鍵約束? ALTER TABLE ClientUsers DROP CONSTRAINT PK_ClientUsers – 2009-09-07 08:13:32