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