Microsoft SQL Server 2000中一个讨厌的Bug
Microsoft SQL Server 2000中一个讨厌的Bug
1.异常信息
通过SQL Server Enterprise Manager来修改table结构时,出现如下异常:
ODBC error: [Microsoft][ODBC SQL Server Driver]Invalid cursor state
2.工作环境:
MS SQL Server 2004 SP
SQL Server Hot fix 8.00.0859 (当时是为了修复Microsoft Reporting Services V1.0的bug才安装的)
Windows Server 2003
3.查看Select @@Version 运行结果:
Microsoft SQL Server 2000 - 8.00.859 (Intel X86) Sep 18 2003 12:53:45 Copyright (c) 1988-2003 Microsoft Corporation Standard Edition on Windows NT 5.2 (Build 3790: )
4.Microsoft的相关KB
FIX: An invalid cursor state occurs after you apply Hotfix 8.00.0859 or later in SQL Server 2000
URL: http://support.microsoft.com/kb/831997
RESOLUTION:
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Microsoft SQL Server 2000 service pack that contains this hotfix.
To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix.
Microsoft已经提供了对应的hotfix来解决上述问题,不过需要联系Microsoft Support Services来获取hotfix。我没有在网上发现该hotfix的下载。
***
目前,Microsoft SQL Server 2004 Service Pack 4.0(处于测试阶段)还没有正式推出,郁闷。
只好通过Query Analyzer使用SQL Script脚本来完成,如:
ALTER TABLE AppRemotingLogger ALTER COLUMN Message VARCHAR(800)
(修改数据表AppRemotingLogger的Message字段)
Updated:
根据bengxia的指点,可以从如下的URL下载到了SQL2000-KB810185-8.00.0878-ENU.exe
http://support.microsoft.com/?kbid=838166
上述hotfix修复了该bug。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?