IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'KalaDarAnbar' AND COLUMN_NAME = 'Pro_ID_Unit') begin alter table dbo.KalaDarAnbar add Pro_ID_Unit int references OtherProperties (ID) not null default -1 end