错误“SQL Server 内部错误。文本管理器无法继续执行当前语句“出现的原因?

bbdolly 2003-01-29 09:35:29
这个问题我翻到以前有人提过,当没有人解答……

我实在插入text字段的大文本数据数据遇到的,但是应该和长度无关,(因为更长的我都插入成功过),而却sql语句的语法也应该没有错.

各位达人帮帮忙……
...全文
880 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
bbdolly 2003-02-07
  • 打赏
  • 举报
回复 1
最后的结果:可能是sql_server的一个bug,把写入text换成ntext就没有问题啦,
不知道打上补丁会不会解决这个问题……
bbdolly 2003-01-30
  • 打赏
  • 举报
回复
我的遇到的情况我觉得应该和并发无关。

测试时发现这个错只固定在某几条大本文的插入上发生(我从一个sql_server库中读出数据然后再写入另一sql_server库中),我不知道是不是这个大文本中有什么导致sql_server中发生错误的东西,我已经处理过单引号,但不知道是不是还有什么别的需要注意的……

leimin 2003-01-30
  • 打赏
  • 举报
回复
Symptoms
A keyset-driven cursor on a SELECT statement that uses the NOLOCK option on a table with a text column returns error 7102, if during fetching the data one of the records of the cursor's result set is deleted from another connection.

Error message 7102 is:

Server: Msg 7102, Level 20, State 99, Procedure sp_cursorfetch, Line 24
SQL Server Internal Error. Text manager cannot continue with current statement.



Workaround
To work around this problem, use either of the following:

Remove the NOLOCK option from the SELECT statement.

-or-


Change the cursor to any other type (for example, static, dynamic, or fast_forward).





Status
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For information about how to download and install the latest SQL Server Service Pack, see the following Microsoft Web site:

bbdolly 2003-01-30
  • 打赏
  • 举报
回复
万分感谢……
leimin 2003-01-30
  • 打赏
  • 举报
回复
该问题我没有遇到过,只是从MSDN找到一些资料给你,
一般的解决办法是先跟踪一下,确定问题是有拿一个SQL造成的,或和那些OBJECTS相关。
从MSDN来分析,应该与在插入大文本时表的锁定有关,可能时SQL 在写入大文本到HD时系统太忙。

22,209

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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