环球网校是美国纳斯达克上市企业欢聚时代(NASDAQ:YY)旗下品牌 | 住房和城乡建设部 建筑人才培训合作单位
您现在的位置在: > 计算机类 > 计算机等级考试 > 考试辅导 >

SQLServer2005出现的游标错误的解决方法

2011-06-04 来源:互联网 作者:第一考试网

  中文错误信息:此游标不包括正在修改的表,或该表不能通过此游标更新。
  英文错误信息:The cursor does not include the table being modified or the table is not updatable through the cursor.
  其原因是由于计算机名和sql server 2005的servername不一致所致。
  解决方法:
  先执行
  select @@servername
  查看数据库中的servername
  然后执行:
  sp_dropserver ’old_name’
  go
  sp_addserver ’new_name’, local
  其中old_name为select @@servername语句的结果,new_name为主机名。

#

责编: 返回顶部  打印

关于我们联系我们友情链接网站声明网站地图广告服务帮助中心