Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

SQL Server stored procedure custom conflict resolver adds "0x00" to conflicting columns


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You configure merge replication in Microsoft SQL Server 2008 R2, in Microsoft SQL Server 2008, or in Microsoft SQL Server 2005.
  • The publication contains a table article.
  • The table article contains columns of data type varchar or nvarchar.
  • You configure the table article to use a stored procedure custom conflict resolver.
In this scenario, no error is returned. However, the stored procedure custom conflict resolver adds "0x00" or "\0" to the end of the strings in the varchar and nvarchar columns that are involved in the conflict. Additionally, there is no non-convergence. Therefore, both columns of data are affected.

Note The columns of data type varchar or nvarchar do not have to be involved in the conflict. For example, this issue can occur if a column of data type INT contains the conflicting change.


↑ Back to the top


Cause

This issue occurs because the merge replication reconciler adds 0x00" or "\0" after the data is retrieved from the stored procedure.

Note The stored procedure returns the correct data.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.


↑ Back to the top


Keywords: kbsurveynew, kbprb, kbentirenet, kb

↑ Back to the top

Article Info
Article ID : 2585240
Revision : 3
Created on : 11/20/2019
Published on : 11/20/2019
Exists online : False
Views : 312