sql2000语句在SQL2005下出现错误?

xwqjamky 2007-01-09 10:17:01
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下执行错误,该如何做这些操作呢?
...全文
211 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
伴老思源 2007-01-12
  • 打赏
  • 举报
回复
http://forums.microsoft.com/MSDN-CHT/ShowPost.aspx?PostID=466368&SiteID=14
伴老思源 2007-01-12
  • 打赏
  • 举报
回复
关注
feixiangVB 2007-01-10
  • 打赏
  • 举报
回复
關注~~~
xwqjamky 2007-01-09
  • 打赏
  • 举报
回复
use master
select @id=sid from sysusers where name='ERP'
--copy sid
use ERPDATA
update sysusers set sid=@id where name='ERP'


怎样做这样的操作呢?
xwqjamky 2007-01-09
  • 打赏
  • 举报
回复
有其它办法可以修改系统表吗?
yesyesyes 2007-01-09
  • 打赏
  • 举报
回复
sqlserver2005已经不允许修改系统表了
xwqjamky 2007-01-09
  • 打赏
  • 举报
回复
顶顶,谁能告诉我怎样修改系统表

6,129

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 新技术前沿
社区管理员
  • 新技术前沿社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧