|
A Connection object represents an open connection to a data source.
Contains all stored Error objects that pertain to an ADO operation. | |
All Property objects for a specific instance of a Connection object. This collection is not currently supported on UNIX. |
ADO Connection Object BeginTrans, CommitTrans, and RollbackTrans Methods |
Begins a new database transaction within a Connection object. |
Closes an open Connection object and any dependent objects. | |
ADO Connection Object BeginTrans, CommitTrans, and RollbackTrans Methods |
Saves any pending changes and ends the current transaction. It may also start a new transaction. |
Executes the specified query, SQL statement, stored procedure, or provider-specified text. | |
Opens a connection to a data source. | |
Obtains database schema information from the provider. This method is not currently supported on UNIX. | |
ADO Connection Object BeginTrans, CommitTrans, and RollbackTrans Methods |
Cancels any changes made during the current transaction and ends the transaction. It may also start a new transaction. |
One or more characteristics of an object. | |
How long to wait while executing a command before terminating the command and issuing and error. | |
Contains the information used to establish a connection to a data source. | |
How long to wait while establishing a connection before terminating the attempt and issuing and error. | |
The location of the cursor engine in a recordset. | |
The default database for the Connection object. | |
The level of isolation for the Connection object. | |
The available permissions for modifying data in a Connection object. | |
The name of a provider for a Connection object. This property is not available on UNIX. | |
Describes the current state of the Connection object. | |
The ADO version number. |
A Connection object represents a session with a data source. In the case of a client/server database system, it may represent an actual network connection to the server. Depending on the functionality of the provider, some collections, properties, and methods of the Connection object may not be available.
Use the collections, methods, and properties of a Connection object for:
· configuring the connection before opening it with the ConnectionString, CommandTimeout, and ADO Connection Object Mode Property properties.
· setting the CursorLocation property to invoke the Client Cursor Provider, which supports batch updates. Batch updates are not currently supported on UNIX.
· setting the default database for the connection with the DefaultDatabase property.
· setting the level of isolation for the transactions opened on the connection with the IsolationLevel property. Transactions are not currently supported on UNIX.
· specifying an OLE DB provider with the ADO Connection Object Provider Property.
· establishing and breaking the physical connection to the data source with the ADO Connection Object Open Method and ADO Connection Object Close Method methods.
· executing a command on the connection with the ADO Connection Object Execute Method and configuring the execution with the CommandTimeout property.
· managing transactions on the open connection, including nested transactions if the provider supports them, with the BeginTrans, CommitTrans, and RollbackTrans methods and the ADO Connection Object Attributes Property. The transaction methods are not currently supported on UNIX.
· examining errors returned from the data source with the ADO Errors Collection.
· reading the version from the ADO implementation in use with the ADO Connection Object Version Property.
· obtaining schema information about your database with the ADO Connection Object OpenSchema Method.
Note
To execute a query without using a Command object, pass a query string to the Execute method of a Connection object. However, a Command object is required when you want to retain the command text and re-execute it, or use query parameters.
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.