Help Center

CODBCBase.GetErrorInfomethod

Returns a verbose description of the last error(s).

DatabasesmethodCODBC.incdocumented

Syntax

FUNCTION GetErrorInfo (BYVAL HandleType AS SQLSMALLINT, BYVAL Handle AS SQLHANDLE, BYVAL iErrorCode AS SQLRETURN = 0) AS DWSTRING

Parameters

NameDescription
HandleTypeThe handle type:
SQL_HANDLE_DBC (connection handle)
SQL_HANDLE_STMT (statement handle)
HandleThe handle value.
iErrorCodeOptional. The error code returned by GetLastResult.

Return value

The description of the error or errors.

Description

Returns a verbose description of the last error(s).

Reference

  • Include file CODBC.inc
  • Defined in AfxNova/COdbc.inc:128
  • Documented in Databases/ODBC Classes/CODBC Class.md
  • Topic: ODBC Classes