http://www.perlmonks.org?node_id=1049402


in reply to ODBC Sql Server error handling

It looks to me (because your error handler expects a state, message and native) that your error handler is one set up via odbc_error_handler. If you return 0 from this handler the error is ignored. However, you might want to also read HandleError for DBI (rather than DBD::ODBC) as it specifically tells you how to ignore an error with set_err although there are issues you need to be aware of.