ODBCDatabase.GetConnectionAttribute

From Xojo Documentation

Method

ODBCDatabase.GetConnectionAttribute(Attribute as Integer) As Variant

Supported for all project types and targets.

Returns the current setting of a connection attribute. Returns a Variant that contains either a String or an Integer, based on the attribute.

References

SQLGetConnectAttr ODBC function

Example

Obtaining an attribute:

Dim currentCatalog As Variant
currentCatalog = db.GetConnectionAttribute(ODBCConstant.SQL_CURRENT_QUALIFIER)