大容量数据保存,引发的问题。把RichTextBox的数据以byte[]的形式保存(MS SQL2000).

984437 2003-12-12 02:51:39
当我把RichTextBox的内容以byte[]保存,它在数据库中对应的字段类型是image.
当数据量小时,保存正常。当RichTextBox中的内容多,特别是图片多时,它报错为"当前命令发生严重错误,应放弃任何产生的结果".我跟踪数据库发现数据执行为
UPDATE msdb.dbo.sysalerts SET last_occurrence_date = 20031212,
last_occurrence_time = 143027, last_response_date = 0, last_response_time = 0, occurrence_count = occurrence_count + 1 WHERE (id = 4)
go
exec sp_reset_connection
go

我想可能是数据库配置的问题,但改了很多配置都没有用.
...全文
69 12 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
984437 2004-01-11
  • 打赏
  • 举报
回复
还没解决,只有结贴了。
984437 2003-12-19
  • 打赏
  • 举报
回复
redbb(....Dotneter....) :我每次把他删了,保存大量数据时,它又加锁了,还是保存不进去.怎么办.
elite2018 2003-12-17
  • 打赏
  • 举报
回复
Or in your Enterprise Management, expand the Management -current activity

and kill the Process which exists dead lock
elite2018 2003-12-17
  • 打赏
  • 举报
回复
use : sp_lock
in query analays tools to find whether there is waiting Thread exists
984437 2003-12-17
  • 打赏
  • 举报
回复
to redbb:那我怎么删掉锁呀,怎么才能找到他.
984437 2003-12-16
  • 打赏
  • 举报
回复
to redbb:我没有加锁呀.
984437 2003-12-16
  • 打赏
  • 举报
回复
to redbb:我没有回锁呀.
elite2018 2003-12-16
  • 打赏
  • 举报
回复
The lock is created by DB automatically , so when you insert into DB , i t will add lock
elite2018 2003-12-12
  • 打赏
  • 举报
回复
when you insert into DB , i t will add lock ,

I think you db has many locks , so kill them by finding out their id

and run : kill id
dldl 2003-12-12
  • 打赏
  • 举报
回复
up
l_clove 2003-12-12
  • 打赏
  • 举报
回复
up,关注
crystal_heart 2003-12-12
  • 打赏
  • 举报
回复
up

111,098

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧