Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere C API reference » sacapi.h

 

sqlany_error function

Returns the last error code and message stored in the connection object.

Syntax
sacapi_i32 sqlany_error( a_sqlany_connection * conn, char * buffer, size_t size )
Parameters
  • conn   A connection object returned from sqlany_new_connection.

  • buffer   A buffer to be filled with the error message.

  • size   The size of the supplied buffer.

Returns

The last error code. Positive values are warnings, negative values are errors, and 0 is success.

See also