FIX: Replication Log Reader Agent crashes when an empty string is inserted into an XML column of a table in a transactional replication publication in SQL Server 2008 R2

Microsoft distributes Microsoft SQL Server 2008 R2 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 fix release.
SYMPTOMS
Consider the following scenario:
  • You create a transactional replication publication on an instance of Microsoft SQL Server 2008 R2.
  • The publication contains a table that has an XML column.
  • You initialize the publication, and then one of the following events occurs in the table:
    • A row is inserted that contains an empty string in the XML column. 
    • A row is updated by inserting an empty string into the XML column.
In this scenario, Replication Log Reader Agent crashes, and the replication fails.

Note This issue does not occur if the XML column has the NULL value.

RESOLUTION

Cumulative update information

SQL Server 2008 R2 Service Pack 1

The fix for this issue was first released in Cumulative Update 6. For more information about how to obtain this cumulative update package for SQL Server 2008 R2 Service Pack 1, click the following article number to view the article in the Microsoft Knowledge Base:
2679367 Cumulative Update package 6 for SQL Server 2008 R2 Service Pack 1
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 Service Pack 1 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2567616 The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 Service Pack 1 was released
WORKAROUND
To work around this issue, follow these guidelines:
  • Do not insert a row that contains an empty string in the XML column.
  • Do not update a row by inserting an empty string into the XML column.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
REFERENCES
For more information about Replication Log Reader Agent, visit the following Microsoft Developer Network (MSDN) website:
Properties

Article ID: 2681514 - Last Review: 04/16/2012 20:48:00 - Revision: 1.0

Microsoft SQL Server 2008 R2 Developer, Microsoft SQL Server 2008 R2 Enterprise, Microsoft SQL Server 2008 R2 Standard, Microsoft SQL Server 2008 R2 Workgroup, Microsoft SQL Server 2008 R2 Web

  • kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2681514
Feedback