DB_GetConnectAttr Function

Action

Returns the current value of an ODBC driver connection attribute.

Syntax

status = DB_GetConnectAttr (hdbc, attr-id, attr-value)
Variable Description
status

Status of the get operation. Returns TRUE If the get operation was successful. Otherwise, returns FALSE. BOOLEAN.

hdbc

The handle to a database as returned by DB_Connect. HDATABASE.

attr-id

The attribute identifier to retrieve. INTEGER.

attr-value

The string or integer variable to receive the driver attribute. ANYTYPE.

Notes

DB_GetConnectAttr corresponds to SQLGetConnectAttr. For additional information about SQLGetConnectAttr, see SQLGetConnectAttr Function.

The value of attr-id might depend on the driver. Some attr-id values are common or standard.

Example

STRING s2 
//Attribute identifier 105 is used to set or get the log file name
result = DB_GetConnectAttr(hdbc, 105, s2)
Print(s2)