Replication – LOB data errors
This is a quickie blog post, but I thought I’d post it before I forgot about it.
We have transactional replication turned on for one of our production databases. This database includes XML fields and we recently saw the following error:
Length of LOB data (78862) to be replicated exceeds configured maximum 65536
Looking into it, this is a server setting and the default value for Max Text Replication Size is 65536 (bytes). Because our XML data is of varying sizes, I made the decision to set this to the maximum allowable value – 2147483647 (bytes).
To change it through SSMS:
- Right click on the server and choose Properties
- In the Advanced page – change the Max Text Replication Size to 2147483647
In T-SQL:
EXEC sp_configure ‘max text repl size’, 2147483647
GO
GO