CTBase.SetAutoCommit
Declaration
void CTBase.SetAutoCommit(CTBOOL flag);
Description
SetAutoCommit() sets the auto commit mode.
The auto commit of transactions are invoked automatically when records are added or updated by a Write() call. Automatic transactions may increase performance by reducing network traffic for single record updates since this is equivalent of performing the following functions:
hRecord.Begin();
try
{
hRecord.Write();
hRecord.Commit();
}
catch (CTException)
{
hRecord.Abort();
}
The following applies when an automatic transaction is performed:
Return Values
Value |
Symbolic Constant |
Explanation |
---|---|---|
0 |
CTDBRET_OK |
No Error |
See Also
CTBase.GetAutoCommit() CTBase.SetOperation() CTBase.GetOperation()