Group: ODBC API - Library: odbc32
Retrieving current settings for an ODBC connection
SQLRETURN SQLGetConnectAttr(
SQLHDBC ConnectionHandle,
SQLINTEGER Attribute,
SQLPOINTER ValuePtr,
SQLINTEGER BufferLength,
SQLINTEGER * StringLengthPtr);
DECLARE SHORT SQLGetConnectAttr IN odbc32;
INTEGER ConnHandle,;
INTEGER Attribute,;
INTEGER @ ValuePtr,;
INTEGER BufferLength,;
INTEGER @ StringLengthPtr
ConnectionHandle [Input] Connection handle.
Attribute [Input] Attribute to retrieve.
ValuePtr [Output] A pointer to memory in which to return the current value of the attribute specified by Attribute.
BufferLength [Input] If Attribute is an ODBC-defined attribute and ValuePtr points to a character string or a binary buffer, this argument should be the length of *ValuePtr.
StringLengthPtr [Output] A pointer to a buffer in which to return the total number of bytes available to return in *ValuePtr.
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA, SQL_ERROR, or SQL_INVALID_HANDLE.