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