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