Method
ODBCDatabase.SetConnectionAttribute
Warning
This item was deprecated in version 2019r2. Please use ODBCDatabase.ConnectionAttribute as a replacement.
Description
Sets attributes that govern aspects of connections.
Notes
The attribute can be specified using the ODBCConstant constants. The value is only set after the connection is made. Only Integer attributes may be set with this method. To set a String attribute before the connection is made, see the Attribute property.
References
Sample code
Setting an attribute to disable AutoCommit:
db.SetConnectionAttribute(ODBCConstant.SQL_AUTOCOMMIT, ODBCConstant.SQL_AUTOCOMMIT_OFF)
Compatibility
All project types on all supported operating systems.