Programming Guide |
Prevents database transactions from being committed
int sm_mts_DisableCommit(void);
MTS
Server
sm_mts_DisableCommit
prohibits the current transaction from being committed when all interested parties complete their work. If the database updates are not in a consistent state at some point during processing, calling this method prevents those updates from being committed.This function will not destroy the object, nor will it cause the transaction to be aborted. Only SetAbort or SetComplete by all parties will allow the transaction to be completed.
Transactions are created with EnableCommit on.
For more details see the DisableCommit 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_EnableCommit, sm_mts_SetComplete, sm_mts_SetAbort