SQL Server – Add Column Script
The code below can be used to a column to an existing table.
–Add a column to an existing table
ALTER TABLE dbo.Employee
ADD Active varchar(1)
GO
–Add default to new column
ALTER TABLE dbo.Employee
ADD CONSTRAINT Employee_Active
DEFAULT (‘N’) FOR Active
GO
#SQLServer