sqlserver alter column bug

hanqing's profile image hanqing posted 4 weeks ago in General Permalink

SQL Server does not support directly adding or modifying DEFAULT constraints in the ALTER COLUMN clause. ALTER COLUMN is only used to modify the data type, length, or NULL/NOT NULL attribute of a column. To set a default value, you must separately manage the default constraint using ADD CONSTRAINT or DROP CONSTRAINT.

image.png

Please login to leave a reply, or register at first.