Length of LOB data (190999) to be replicated exceeds configured maximum 65536. 错误修改

在上传附件时,本地是可以的但服务器上就有了文件大小的限制,不能上传。经过打断点找到这样一个错误:
Length of LOB data (190999) to be replicated exceeds configured maximum 65536. Use the stored procedure sp_configure to increase the configured maximum value for max text repl size option, which defaults to 65536. A configured value of -1 indicates no limit, other that the limit imposed by the data type.
The statement has been terminated.
原来SQL server有一个存储过程,max text repl size的value值做了限制,无法上传。
随后用

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

就可以更新了所有的value值为2147483647.
不用担心需要重新启动数据库,它可以直接更新有效。
文件再次上传就没有问题了。

转载于:https://www.cnblogs.com/Jack-S-Wang/p/11058318.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值