Return 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.