IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Matter' AND COLUMN_NAME = 'CreateDateTime') begin alter table dbo.Matter add CreateDateTime DateTime not null Default GetDate() end