AddLog Method

Replication Programming

Replication Programming

AddLog Method

The AddLog method adds history and error information to a distribution store.

Applies To

DistributionLog Object

Syntax

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:
  • 1 = STARTUP

  • 2 = SUCCESS

  • 3 = INPROGRESS

  • 4 = RETRY

  • 5 = FAILURE
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

Remarks

The method returns S_OK if it succeeds and DB_E_ERROROCCURRED if it fails.

See Also

DISTERRORDESC Structure