Export (0) Print
Expand All

BusinessLogicModule.UpdateConflictsHandler Method

Topic Status: Some information in this topic is pre-release and subject to change in future releases. Pre-release information describes new features or changes to existing features in Microsoft SQL Server 2014.

Optional method that implements the custom business logic invoked when conflicting UPDATE statements occur at the Publisher and at the Subscriber.

Namespace:  Microsoft.SqlServer.Replication.BusinessLogicSupport
Assembly:  Microsoft.SqlServer.Replication.BusinessLogicSupport (in Microsoft.SqlServer.Replication.BusinessLogicSupport.dll)

public virtual ActionOnUpdateConflict UpdateConflictsHandler(
	DataSet publisherDataSet,
	DataSet subscriberDataSet,
	ref DataSet customDataSet,
	ref ConflictLogType conflictLogType,
	ref string customConflictMessage,
	ref int historyLogLevel,
	ref string historyLogMessage
)

Parameters

publisherDataSet
Type: DataSet
Dataset representing the Publisher data.
subscriberDataSet
Type: DataSet
Dataset representing the Subscriber data.
customDataSet
Type: DataSet
Dataset implemented by the custom business logic.
conflictLogType
Type: Microsoft.SqlServer.Replication.BusinessLogicSupport.ConflictLogType
ConflictLogType requested by the custom business logic handler.
customConflictMessage
Type: String
Conflict message returned by the custom business logic handler.
historyLogLevel
Type: Int32
Log level of the custom message returned by the custom business logic handler.
historyLogMessage
Type: String
Log message provided by custom business logic handler. The log message gets written to the distribution database.

Return Value

Type: Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnUpdateConflict
The ActionOnUpdateConflict action that will be taken by the process after the custom business logic handler has executed.

Community Additions

Show:
© 2015 Microsoft