The sql_get_error_handler routine gets the address of the application's currently registered error handling routine and the address of the user-specified data. An application can use the sql_get_error_handler routine to get the address of the currently registered routine and user- specified data. The application can store the values in variables for use later in the program.