E.1. Connection Object
The Connection object represents a unique session with a data source. The Connection object has collections, methods, and properties associated with it. The availability of these collections, methods, and properties is dependent on the functionality supported by the provider.
E.1.1. Properties of the Connection Object
The following table describes each of the properties of the Connection object.
Property | DataType | Description |
---|---|---|
Attributes | Long | Generic property indicating one or more characteristics of the connection object. |
CommandTimeout | Long | Configures the timeout value for the Execute method on the Connection object. |
ConnectionString | String | The default property value. Specifies a data source. Pass in a connection string containing a series of argument = value statements separated by semicolons. |
ConnectionTimeout | Long | Indicates how long to wait while establishing a connection before terminating the attempt and generating an error. |
CursorLocation | Long | Allows the developer to choose between various cursor locations (usually either client or server). |
DefaultDatabase | String | Sets or returns a string that resolves to the name of a database available from the provider. |
IsolationLevel | Long | Sets or returns an IsolationLevelEnum value. The default is adXactReadCommitted. |
Mode | Long | Indicates the level of permissions available for modifying data in a connection, record, or stream object. |
Provider | String | Sets or returns a string value representing the provider name. If no provider is specified, ... |
Get Access™ 2007 VBA Programmer's Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.