Returns a pointer to a string that contains an error message. The error message contains text for the error code in the SQLCA. If no error was indicated, a null pointer is returned. The error message is placed in the buffer supplied, truncated to length max if necessary.
char * sqlerror_message( SQLCA * sqlca, char * buffer, int max );
A pointer to a string that contains an error message or NULL if no error was indicated.