Transactions Property

The Transactions indicates transaction support.

Applies to objects: Connection, Database.

Syntax

[Let] RetVal = object.Transactions

The Transactions property syntax has these parts:

Part Description
object Required. A reference to an instance of the object.
RetVal Optional. A Boolean type variable.

Remarks

This property is Read-Only.

Example

Dim en As dbEngine
Set en = new dbEngine

Dim ws As Workspace
Set ws = en.CreateWorkspace("IBWorkspace")

Dim db As Database
Set db = ws.OpenDatabase("IBBase", FALSE, FALSE, "ODBC; UID=SYSDBA; PWD=masterkey; DSN=IBBase")

If db.Transactions Then
	db.BeginTrans()
	...
	db.CommitTrans()
End IF

db.Close()
ws.Close()

 

See Also

Connection Object, Database Object, IsolationLevels Property, BeginTrans Method.