IF (Not EXISTS(select * from sys.syscolumn as C, sys.systable as T where LCase(T.table_name) = LCase('Specialities') and LCase(C.column_name) = LCase('Active') and C.table_id=T.table_id)) THEN alter table Specialities add Active integer default 1 END IF