中文错误信息:此游标不包括正在修改的表,或该表不能通过此游标更新。
英文错误信息:The cursor does not include the table being modified or the table is not updatable through the cursor.
其原因是由于计算机名和sql server 2005的servername不一致所致。
解决方法:
先执行查看数据库中的servername
然后执行:
其中old_name为select @@servername语句的结果,new_name为主机名。
英文错误信息:The cursor does not include the table being modified or the table is not updatable through the cursor.
其原因是由于计算机名和sql server 2005的servername不一致所致。
解决方法:
先执行
- select @@servername
然后执行:
- sp_dropserver 'old_name'
- go
- sp_addserver 'new_name', local
本文介绍了一种常见的SQL Server游标错误:“此游标不包括正在修改的表,或该表不能通过此游标更新”。错误原因在于计算机名与SQL Server的servername不一致。文章提供了详细的解决步骤。
3018

被折叠的 条评论
为什么被折叠?



