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.
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:
Cumulative Update package 6 for SQL Server 2008 R2 Service Pack 1
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:
The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 Service Pack 1 was released
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.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information about Replication Log Reader Agent, visit the following Microsoft Developer Network (MSDN) website: