Best way to change clustered index (PK) in SQL 2005

后端 未结 4 833
北海茫月
北海茫月 2021-01-02 23:37

I have a table which has a clustered index on two columns - the primary key for the table. It is defined as follows:

ALTER TABLE Table ADD  CONSTRAINT [PK_T         


        
4条回答
  •  长情又很酷
    2021-01-03 00:29

    Clustered indexes don't actually change the physical order of the data being stored in the table it self. It hasn't been this way since SQL 6.5.

    The data on the pages is stored in the correct order. The pages can be stored on the disk in any physical order.

提交回复
热议问题