skip to main content
DataDirect Connect Drivers : Sybase Driver : Connection Properties : ErrorBehavior
  
ErrorBehavior
Purpose
Determines how the driver handles errors that are returned from stored procedures.
Valid Values
exception | warning | raiseerrorwarning
Behavior
If set to exception, the driver throws an exception when it encounters stored procedure errors, including RAISERRORs.
If set to warning, the driver returns stored procedure errors, including RAISERRORs, as SQLWarnings.
If set to raiseerrorwarning, the driver returns RAISERRORs as SQLWarnings and throws exceptions for other stored procedure errors.
Notes
*By default, older versions of the Sybase driver converted errors returned from a stored procedure into SQLWarnings. Applications that relied on the driver converting errors to warnings can revert to that behavior by setting ErrorBehavior=warning.
Default
exception
Data Type
String