SQL TABLE ALTER SCRIPT
Following script is used to alter sql table with default value.
-- Adding Value with Default ValueALTER TABLE TableNameADD ColumnName INT NOT NULL DEFAULT(0)GO
Script alter Column type
ALTER TABLE mytable ALTER COLUMN mycolumn newtype
Following script is used to alter sql table with default value.
-- Adding Value with Default ValueALTER TABLE TableNameADD ColumnName INT NOT NULL DEFAULT(0)GO
Script alter Column type
ALTER TABLE mytable ALTER COLUMN mycolumn newtype
Comments
Post a Comment