MSSQL – Fix Error – ALTER TABLE only allows columns to be added that can contain nulls



Msg 4901, Level 16, State 1, Line 1
ALTER TABLE only allows columns to be added that can contain nulls, or have a DEFAULT definition specified, or the column being added is an identity or timestamp column, or alternatively if none of the previous conditions are satisfied the table must be empty to allow addition of this column. Column ‘SomeNewColumn’ cannot be added to non-empty table ‘Product’ because it does not satisfy these conditions.

More Info
https://howtodomssqlcsharpexcelaccess.blogspot.com/2019/06/mssql-fix-error-alter-table-only-allows.html

Comments are closed.