Name
Connection Object — (Versions 2.0, 2.1, 2.5, 2.6)
Synopsis
Dim connection As ADODB.ConnectionA Connection object represents a unique connection to a data source. Connection objects are independent of all other ADO objects.
Collections
- Errors
The Errors collection is a collection of individual errors and warnings that have occurred for the last operation on the current Connection object.
- Properties
The Properties collection contains characteristics specific to the Connection object for the currently used provider.
Methods
- BeginTrans
Manages transaction processing for the current Connection object by starting a transaction.
- Cancel
Cancels the pending asynchronous connection or execution.
- Close
Closes either a Connection or Recordset object, including any dependent objects that they may have.
- CommitTrans
Manages transaction processing for the current Connection object by committing a transaction.
- Execute
Executes a specified SQL statement, query, stored procedure, URL, or provider-specific command against the data source.
- Open
For the Connection object, opens a connection to a particular data source. For the Recordset object, opens a cursor.
- OpenSchema
Returns a Recordset object containing information about the data source’s schema.
- RollbackTrans
Manages transaction processing for the current Connection object by rolling back a transaction.
Properties
- Attributes
Sets or returns specific characteristics about the Connection object.
- CommandTimeout
Indicates how long ADO waits before it generates an error when ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access