当前位置: 代码迷 >> Sql Server >> sql2000语句在SQL2005下出现异常
  详细解决方案

sql2000语句在SQL2005下出现异常

热度:25   发布时间:2016-04-27 17:13:51.0
sql2000语句在SQL2005下出现错误?
sp_configure     'Allow   Update ',   1
RECONFIGURE   with   override
go

declare   @id   varbinary(300)  
use   master
select   @id=sid   from   sysusers   where   name= 'ERP '
--copy   sid
use   ERPDATA
update   sysusers   set   [email protected]   where   name= 'ERP '
GO

sp_configure     'Allow   Update ',   0
RECONFIGURE   with   override

以上的语句在SQL2000SP4下运行正常,但在SQL2005下执行错误,该如何做这些操作呢?

------解决方案--------------------
sqlserver2005已经不允许修改系统表了
------解决方案--------------------
關注~~~
------解决方案--------------------
http://forums.microsoft.com/MSDN-CHT/ShowPost.aspx?PostID=466368&SiteID=14
  相关解决方案