日期:2014-05-18  浏览次数:20452 次

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   sid=@id   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