我有一個大的表,目前在SQL Server 2012年2500000行。主鍵被列爲,並且由於主鍵是uniqueidentifier我想將其更改爲對於初學者來說是非集羣的(然後在將來的某個時候,可以在日期列上集羣)。 問題是這個超時。禁用索引集羣的速度如何很慢? 我能做些什麼來加速並在超時之前完成,除了將此操作的超時時間增加到24小時?
CREATE table comp_tb
(
a tinyint
)
insert into comp_tb values('4')
insert into comp_tb values('1')
insert into comp_tb values('5')
insert into comp_tb values('6')
insert into comp_tb values('