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