IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'places' AND COLUMN_NAME = 'Dom_ID_RowType') begin alter table dbo.places add Dom_ID_RowType int references dbo.domain(ID) not null default -1 end; IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'places' AND COLUMN_NAME = 'UserTitle') begin alter table dbo.places add UserTitle nvarchar(1000) null end;