views:

913

answers:

2

Hi,

I am trying to insert value for the 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?

Thanks, P.Gopalakrishnan.

+2  A: 

You can run:

sp_configure 'max text repl size', 2147483647

This will up the maximum size, letting the large LOBs be replicated.

Garry Shutler
Do you happen to know how to fix the same problem when it occurs for columns of type VARBINARY(MAX)? (They're also FILESTREAM if that matters).
David Moye
How come you do not recommend setting the size option to -1 or no maximum?
Nat
A: 

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

ram