IF (Not EXISTS(select * from sys.syscolumn as C, sys.systable as T where LCase(T.table_name) = LCase('OtherDiskForVaucher') and LCase(C.column_name) = LCase('OrderNumber') and C.table_id=T.table_id)) THEN alter table OtherDiskForVaucher add OrderNumber integer not null default 0 END IF GO IF (Not EXISTS(select * from sys.syscolumn as C, sys.systable as T where LCase(T.table_name) = LCase('OtherDiskForVaucher') and LCase(C.column_name) = LCase('Zakraglenie') and C.table_id=T.table_id)) THEN alter table OtherDiskForVaucher add Zakraglenie varchar(5) not null default '0' END IF