Help Center

CODBCBase.GetSqlStatemethod

Returns the SqlState for the specified handle.

DatabasesmethodCODBC.incdocumented

Syntax

FUNCTION GetSqlState (BYVAL HandleType AS SQLSMALLINT, BYVAL Handle AS SQLHANDLE) AS DWSTRING

Parameters

NameDescription
HandleTypeThe handle type:
SQL_HANDLE_DBC (connection handle)
SQL_HANDLE_STMT (statement handle)
HandleThe handle value.

Return value

The SqlState.

Description

Returns the SqlState for the specified handle.

Note: Optional feature not implemented in Microsoft Access Driver.

Reference

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