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. Value Description Trace Query if ODBC debug tracing is enabled/disabled. TraceFile Query the current ODCB debug trace file. Connected Query the status of the underlying connection. IsolationLevel Query isolationlevel. Perfdata Get 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