The AddLog method adds history and error information to a distribution store.
HRESULT AddLog(
DWORD dwStatusID,
LPSTR szComment,
BYTE* pXactSeqno,
ULONG ulTransactions,
ULONG ulCommands,
ULONG cErrorDescs,
const DISTERRORDESC rgErrorDescs[] );
| Part | Description |
|---|---|
| dwStatusID | Status of the log message:
|
| szComment | Log message text |
| XactSeqno | Transaction sequence number |
| ulTransactions | Number of transactions associated with this message |
| ulCommands | Number of commands associated with this message |
| cErrorDescs | Number of DISTCOMMANDDESC structures in the rgCommandDesc array |
| rgErrorDescs | Array of DISTERRORDESC structures that describe the replicated command |
The method returns S_OK if it succeeds and DB_E_ERROROCCURRED if it fails.