CodeCharge Studio

Connection Run-Time Property (ASP)

Applies to

Connection Object

Type

object (ADODB.Connection)

Access

Read-only

Syntax

object.Connection.<member>...

Description

Retrieves ADO Connection object used to access underlying database. This object can be used to perform some low-level database operations not exposed by wrapping Connection Object. They may include extracting some database-specific settings and attributes or starting and closing transactions for instance.

For complete listing of properties and methods for this object refer to ActiveX Data Objects Reference available from Microsoft's website.

Examples

The following ADO Connection object's methods can be used to start transaction, rollback it or commit the results. Transaction is a set of database operations that have to be executed as a whole, if one fails previous ones should be reverted.
DBInternetDB.Connection.BeginTrans
DBInternetDB.Connection.RollbackTrans
DBInternetDB.Connection.CommitTrans
Note: Some database types or drivers may not support transactions

See also

Execute Method
ConnectionString Property


On-line, printable versions and updates