SQL Server 2005游標錯誤的破解方案
文章主要描述的是SQL Server 2005游標錯誤的正確解決方法,其中中文錯誤信息之此游標不屬于正在修改的表,或該表不能通過此游標更新,其英文錯誤信息:The cursor does not include the table being modified or the table is not updatable through the cursor.
其原因是由于計算機名和sql server 2005的servername不一致所致。
解決方法:
先執(zhí)行
- select @@servername
查看數(shù)據(jù)庫中的servername
然后執(zhí)行:
- sp_dropserver 'old_name'
- go
- sp_addserver 'new_name', local
其中old_name為select @@servername語句的結(jié)果,new_name為主機名。 以上的相關(guān)內(nèi)容就是對SQL Server 2005游標錯誤的解決方法的介紹,望你能有所收獲。
上述的相關(guān)內(nèi)容就是對SQL Server 2005游標錯誤的解決方法的描述,希望會給你帶來一些幫助在此方面。
【編輯推薦】