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