Begin_Transaction command¶
Include: Use Db\DBCommands.pkg
Purpose¶
Starts a database transaction block for DD operations.
Syntax¶
Begin_Transaction
// DD operations
End_Transaction
How it works¶
Begin_Transactionopens aTryblock and sendsBeginTransactiontoghoDbTransactionManager.- Transactions are nestable; the transaction manager starts a new transaction when depth moves from
0to1. - The transaction is completed by
End_Transaction; use the matching end command for every transaction block.
Example¶
Begin_Transaction
Clear oCustomerDD
Move "Data Access" to oCustomerDD.Name
SaveRecord oCustomerDD
End_Transaction