Extended SQLGETPROP, retrieves ODBC connection attributes.

SQLGetPropEx(nConnectionHandle | cCursorName, cAttribute, @vAttributeValue)

Parameters

nConnectionHandle | cCursorName

A valid connection handle returned from SQLCONNECT / SQLSTRINGCONNECT or the name of a
cursor which was created by a remote connection - CURSORGETPROP("ConnectHandle", cCursorName) must return a valid connection handle.

cAttribute
One of the following values.
ValueDescription
TraceQuery if ODBC debug tracing is enabled/disabled.
TraceFileQuery the current ODCB debug trace file.
Connected Query the status of the underlying connection.
IsolationLevelQuery isolationlevel.
PerfdataGet a pointer to MS SQL Server performance data structure.
@vAttributeValue

A variable by reference into which the requested connection attribute is stored.

Return Value

1 if the property was retrieved successful, 2 if there is additional information available via AErrorEx.

See Also

Reference

ASQLDataSources
ASQLDrivers
ChangeSQLDataSource
CreateSQLDataSource
DeleteSQLDataSource
SQLCancelEx
SQLExecEx
SQLPrepareEx
SQLSetPropEx

Used WinApi functions

SQLGetConnectAttr