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

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.