Function CSPTxContext::Commit()

Description:
Commits the transaction as a whole, causing any taken action bound to it to be commited too.

Prototype:
void Commit();

Arguments:
No arguments (void).

Return value:
No return value (void).

Examples:
CSPTxContext Tx;
CSPODBCConnection Conn( Tx );
CSPODBCRecordset Set( Conn );
...
...
Tx.Commit(); // All the UPDATE, SELECT, and INSERT statements will be rollbacked.

See also:
member function Abort()
CSPTxContext | Other support classes | Class Categories | Online help home | Back

www.micronovae.com

Copyright © 2002 - 2005 Micronovae Ltd