This method determines whether there is a currently active transaction.
HRESULT get_Status(long *piStatus);
*piStatus
[out]
The current transaction status. If the value is zero, no transaction is active. If the value is nonzero, a transaction is active.
S_OK
The method completed successfully.
This method failed to complete successfully.
A transaction is considered active until the Commit method has successfully executed and the nested transaction count has been decremented to zero. Depending on the data-flushing capabilities of the underlying database server, the data associated with a committed transaction may or may not be written to the physical storage device when the Commit method returns control to its caller.