How to move big table (more then 100GB) from one filegroup to another?
After I have started the script generated by SSMS:
ALTER TABLE [log].[MyTable] DROP CONSTRAINT [PK_MyTable] WITH ( ONLINE = OFF )
GO
ALTER TABLE [log].[MyTable] ADD CONSTRAINT [PK_MyTable] PRIMARY KEY CLUSTERED
(
[MyTableId] ASC
) ON [SECONDARY]
GO
Nothing happened during an hour of work: SECONDARY file did not grow up. Only RAM constatly growing. I have canceled the script (SSMS cancel) after an hour and it stoped... immediately. Looks like it even not started to do any work.
What kind of preparation SQL Server do during this period? How to avoid it? I need to move files during manageable time period.
P.S. Process was not locked, sp_who2 status RUNNING. Buffer reveals that Iam still in "DROP CONSTRAINT" statement (that why I have decided to stop it - DROP during an hour? ).
There is similar question "How can I move a table to another filegroup in MS SQL Server?" but my is specific only to BIG tables.