Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Length of LOB data (78862) to be replicated exceeds configured maximum 65536

Tags:

Here is a related question.

Why do I get this error even when I have not installed SQL Server replication ? The strangest thing is, when I run the fix

sp_configure 'max text repl size', 2147483647 Go RECONFIGURE GO 

it works and I no longer get this error

like image 735
ram Avatar asked Aug 09 '10 14:08

ram


People also ask

What is Max text repl size?

The max text repl size option specifies the maximum size (in bytes) of text, ntext, varchar(max), nvarchar(max), varbinary(max), xml, and image data that can be added to a replicated column or captured column in a single INSERT, UPDATE, WRITETEXT, or UPDATETEXT statement. The default value is 65536 bytes.

What is LOB data in SQL Server?

Large Objects (LOBs) are a set of datatypes that are designed to hold large amounts of data. A LOB can hold up to a maximum size ranging from 8 terabytes to 128 terabytes depending on how your database is configured. Storing data in LOBs enables you to access and manipulate the data efficiently in your application.


2 Answers

The following steps should be performed:

  1. Go to SQL Server management Studio
  2. Right-click a server and select Properties
  3. Select Properties
  4. Go to advanced page
  5. Change the max text replication size to any value you want
like image 44
Yam Chemoriya Avatar answered Sep 30 '22 10:09

Yam Chemoriya


Are you using Change Data Capture?

From How to: Configure the max text repl size Option (SQL Server Management Studio)

This option applies to transactional replication and Change Data Capture

like image 120
Damien_The_Unbeliever Avatar answered Sep 30 '22 08:09

Damien_The_Unbeliever