- Example 1: Transaction on a database opened by SQLConnect
- Example 2: Changing the name of the database (OLE DB)
Example 1: Transaction on a database opened by SQLConnect
Example 2: Changing the name of the database (OLE DB)
The following example is used to perform operations in a transaction during an access to a data file that uses a connection described in the analysis.
Then, the transaction is canceled: the operations are not saved in the data file.
In this example, AFile is an OLE DB data file described in the data model editor. This data file uses the connection named MyConnection described in the data model editor.
// Put the connection in transaction
// Modify the value of the item
AFile.AnItem = "new item"
// Cancel the transaction
This page is also available for…