ODBCDatabase.GetConnectionAttribute

From Xojo Documentation

Revision as of 14:59, 20 June 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)