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