IF ( select count(sc.table_id) from sys.syscolumn as sc == sys.systable as st where LCase(st.table_name)= LCase('ServiceCredits') and LCase(sc.column_name)= LCase('AutomaticService')) = 0 then alter table ServiceCredits add AutomaticService integer default 0; END IF