Changing data type of column in SQL Server
问题 I have to change datatype of a column in SQL Server. So what are the constraints in doing? I know I have to remove index and other constraints? Do I have to remove not null check ? What other things do I have to check before altering the datatype? I need to remove the constraints and alter the table and then add the constraints again. Is this the right way to do so ? DROP INDEX UX_1_COMPUTATION ON dbo.Computation ALTER TABLE dbo.Computation ALTER COLUMN ComputationID NVARCHAR(25) CREATE