Programming Guide |
Enables database transactions to be committed
int sm_mts_EnableCommit(void);
MTS
Server
sm_mts_EnableCommit
allows the current transaction to be committed when all interested parties complete their work.This function will not destroy the object, nor will it cause the transaction to be committed. Only SetComplete by all parties will allow the transaction to be committed.
Transactions are created with EnableCommit on so this function is only needed if DisableCommit has been called.
For more details see the EnableCommit method under IObjectContextMethods in the MTS documentation.
Note that this function requires an object context and therefore cannot be used in the constructor of a service component.
sm_mts_DisableCommit, sm_mts_SetComplete, sm_mts_SetAbort