The default value for a column can be added as follows:
ALTER TABLE [MyTable] ADD DEFAULT ((0)) FOR [MyColumn]
or how is it
ALTER TABLE [MyTable] ADD CONSTRAINT [DF_MyTable_MyColumn] DEFAULT ((0)) FOR [MyColumn]
What is the difference between the two?
Jeremyweir
source share