How can I add a column with a default value to an existing table in SQL Server 2000 / SQL Server 2005?
Use:
-- Add a column with a default DateTime -- to capture when each record is added. ALTER TABLE myTableName ADD RecordAddedDate SMALLDATETIME NULL DEFAULT (GETDATE()) GO