Symptoms
Consider the following scenario:
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.
- 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.
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.
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.
Note The stored procedure returns the correct data.
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.