Skip to content

TDBTransaction.DataBase

Database this transaction is connected to.

Declaration

Source position: db.pas line 2223

public property DataBase: TDataBase;

Description

Database points to the database that this transaction is part of. This property can be set only when the transaction is not active.

Errors

Setting this property to a new value when the transaction is active will result in an EDatabaseError exception.

See also

Name Description
TDBTransaction.Active Is the transaction active or not.
TDatabase Base class for connecting a FreePascal application to an external Database engine.