virtual bool COSession::BeginTrans(ISOLEVEL nIsoLevel=ISOLATIONLEVEL_READCOMMITTED, ITransactionOptions* pIOtherOptions=NULL, ULONG* pnTransactionLevel=NULL);

Return Value

        true if successful; otherwise false.

Parameters

        [in] nIsoLevel:

                The isolation level to be used with this transaction.

        [in] pIOtherOptions:

                Optionally a null pointer. If not, it is a pointer to an object previously returned from ITransactionLocal::GetOptionsObject called on this session instance.

        [in] pnTransactionLevel:

                A pointer to memory to receive the level of the new transaction. The value of the top-level transaction is 1. If it is a null pointer, the level is ignored.

Remark

        Starts a new local transaction. For details, see the documentation of OLEDB. For how to use it, see the example MkTbls.

COSession Class Overview & Class Members