Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when insert length of lob data to be replicated exceeds configured maximum 65536

I am trying to insert a value into a column of datatype image in SQL Server. I am getting the following error:

Length of LOB data (70823) to be replicated exceeds configured maximum 65536.  
The statement has been terminated.

The data length is less than 2 MB.

What is the problem?

like image 499
gopal Avatar asked May 29 '09 12:05

gopal


2 Answers

For SQL Server 2005 or earlier you can run:

sp_configure 'max text repl size', 2147483647

For SQL Server 2008 or later you can run:

sp_configure 'max text repl size', -1

The former increases the maximum size allowed, the latter essentially says "remove the limit". Once the maximum size is increased or removed, large LOBs will be able to be replicated.

like image 195
Garry Shutler Avatar answered Sep 19 '22 21:09

Garry Shutler


Don't forget to run RECONFIGURE after running sp_configure so that your changes can take effect

like image 45
ram Avatar answered Sep 21 '22 21:09

ram