The GetLastTransaction method retrieves information about the last stored transaction.
HRESULT GetLastTransaction(
BYTE* pXactID,
BYTE* pXactSeqno );
| Part | Description | 
|---|---|
| XactID | Transaction identifier that uniquely identifies the transaction. It can be up to 255 bytes. The default is NULL. | 
| XactSeqno | Transaction sequence number that identifies the sequence that transactions are committed (in big endian format). Transactions with lower sequence numbers are committed first. | 
The method returns S_OK if it succeeds and DB_E_ERROROCCURRED if it fails.