Issue: Length of LOB data to be replicated exceeds configured maximum 65536
Error:
Length of LOB data (78862) to be replicated exceeds configured maximum 65536
Scenario:
We published some articles that use varchar(max) and a lot of XML data types for the columns. When we enabled replication, we got the error Length of LOB data (78862) to be replicated exceeds configured maximum 65536
Solution:
Increase the size that can be replicated. This is applicable for transactional replication only.
T-SQL:
EXEC sp_configure ‘max text repl size’, 2147483647
SSMS (excerpt from BOL):
- In Object Explorer, right-click a server and select Properties.
- Click the Advanced node.
- Under Miscellaneous, change the Max Text Replication Size option to the desired value.
Reference:
BOL ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/3056cf64-621d-4996-9162-3913f6bc6d5b.htm
Great post. Exactly what I was looking for. Nice and simple. 😉
Excellent post. Helped me identify a solution very quickly!
Thanks for posting. Perfectly fixed our problem 🙂
Thank you guys.
Perfect! Thanks for posting.
*I know this post is a couple of years old, so those of you viewing for the first time should know that this is a good fix for SQL 2005.
For SQL 2008, you can use also use -1 to remove the limit from the field.
T-SQL:
EXEC sp_configure ‘max text repl size’, -1
RECONFIGURE
Thanks for the simplicity of the post, not a lot of fluff just the facts
Nice Job, this help me a lot..!! thanx
Excellent!!! Nice and simply!! Solved my prob!!!
Thanks for the post, exactaly what I was looking for!
Doesn’t fix the problem!!!
[…] Taken from: https://sqlmusings.wordpress.com/2008/09/22/issue-length-of-lob-data-to-be-replicated-exceeds-configu… […]
awesome post. perfect thing
excellent thanks for the help