我试图在SQL Server中向数据类型图像的列中插入一个值。我收到以下错误:当要复制的lob数据的插入长度超过配置的最大值时65536
Length of LOB data (70823) to be replicated exceeds configured maximum 65536.
The statement has been terminated.
数据长度小于2 MB。
什么问题?
我试图在SQL Server中向数据类型图像的列中插入一个值。我收到以下错误:当要复制的lob数据的插入长度超过配置的最大值时65536
Length of LOB data (70823) to be replicated exceeds configured maximum 65536.
The statement has been terminated.
数据长度小于2 MB。
什么问题?
对于SQL Server 2005或更早版本可以运行:
sp_configure 'max text repl size', 2147483647
对于SQL Server 2008或更高版本可以运行:
sp_configure 'max text repl size', -1
前者增加的最大允许的大小,后者本质上说, “删除限制”。一旦最大尺寸增加或删除,大型LOB将能够被复制。
不要忘记运行sp_configure
,使您的更改生效
作为替代方案,您可以通过SQL Server Management Studio中
参考配置最大文本复制大小选项后运行RECONFIGURE
:http://msdn.microsoft.com/en-us/library/ms179573.aspx
To configure the max text repl size option
1. In Object Explorer, right-click a server and select Properties.
2. Click the Advanced node.
3. Under Miscellaneous, change the Max Text Replication Size option to the desired value.
我在SQL Server 2012中进行了测试,但是从以前的链接,您可以查看2005年和2008年这是相同的指令。
我在asp.net应用程序中收到此错误。 – gopal 2009-05-29 12:57:08
您应该将帮助您的答案标记为正确 – 2011-05-12 18:51:28