当要复制的 lob 数据的插入长度超过配置的最大值 65536 时
我正在尝试将一个值插入到 SQL Server 中的数据类型图像列中。 我收到以下错误:
Length of LOB data (70823) to be replicated exceeds configured maximum 65536.
The statement has been terminated.
数据长度小于 2 MB。
问题是什么?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于 SQL Server 2005 或更早版本,您可以运行:
对于 SQL Server 2008 或更高版本,您可以运行:
前者增加了允许的最大大小,后者本质上是“删除限制”。 一旦增加或删除了最大大小,就可以复制大型 LOB。
For SQL Server 2005 or earlier you can run:
For SQL Server 2008 or later you can run:
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.
作为替代方案,您可以通过 SQL Server Management Studio 参考配置最大文本复制大小选项
:http://msdn.microsoft.com/en-us/library/ms179573.aspx
我已经在 SQL Server 2012 中对其进行了测试,但是从前面的链接您可以查看 2005 和 2008 的说明,它们是相同的。
As an alternative, you can configure the max text replication size option via SQL Server Management Studio
Reference: http://msdn.microsoft.com/en-us/library/ms179573.aspx
I've tested it in SQL Server 2012, but from the previous link you can view the instructions for 2005 and 2008 which are the same.
不要忘记在运行
sp_configure
后运行RECONFIGURE
以便您的更改生效Don't forget to run
RECONFIGURE
after runningsp_configure
so that your changes can take effect