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