The sql_deregister_error_handler routine deregisters the application's currently registered error handling routine. When you deregister a routine, SQL discontinues using the application's currently registered error handling routine. The standard error handling mechanisms are always in effect.