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