I am trying to add default value to an existing table, but it is not working at all. I am expecting to see 'NO' when I add data in my table but it is not happening. I am not sure what is going on or if my syntax is wrong here. Please help. Thanks
ALTER TABLE [myTable]
ADD CONSTRAINT [DF_myTable_FLAG] DEFAULT ('NO') FOR [FLAG]
The datatype for this column is varchar.
INSERTstatement. The syntax looks fine - but how are you inserting your new rows?