I am new to SQL Server. It may be the very basic question.
I want to set a default value for a column having null values and which is already defined in SQL Server 2012.
I am new to SQL Server. It may be the very basic question.
I want to set a default value for a column having null values and which is already defined in SQL Server 2012.
I think what you are trying to do is answered in this question.
ALTER TABLE TableName ADD CONSTRAINT ConstraintName DEFAULT N'DefaultValue' FOR ColumnName;