What happens when I drop a clustered primary key in SQL 2005

后端 未结 3 938
有刺的猬
有刺的猬 2021-01-19 14:50

I\'ve a PK constraint - a clustered index on two columns - which I am in the process of dropping. The command is still running after an hour. I would have thought that as I

3条回答
  •  无人共我
    2021-01-19 15:24

    Clustered index is not "just a constraint", it's a storage method.

    When you drop it, your data are being reordered from clustered storage to heap storage

    Other indexes are being updated to refer to RID's instead of PRIMARY KEY values.

提交回复
热议问题