I’ve got a ‘huge’ table with 750k records. I need to alter some columns of this table. I have the following statements:
ALTER TABLE [MyTable] ALTER COLUMN [MyFirstField] NTEXT NULL
ALTER TABLE [MyTable] ALTER COLUMN [MySecondField] NVARCHAR (50) NULL
- MyFirstField is changed from
NTEXT COLLATE SQL_Latin1_General_CP1_CI_AS NULL - MySecondField is changed from
NVARCHAR (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
It takes quite some time to convert all the records. Any ideas how to spead up this process?
You can’t speed this up.
The text values for each and every column need to be converted from the selected collation to the default one. This takes time.