SQL所有者更改问题

从别的地方偷了个数据库,郁闷!所有着权限不是DBO,用户怎么都无法访问,后来从网上查了查,才知道需要做以下配置:

exec sp_configure 'allow updates','1'

go
reconfigure with override
go
update sysobjects set uid=1 where uid<>1 
go
sp_configure 
'allow updates','0'
go
reconfigure with override 
  

就可以将数据库的所有者改为DBO
posted @ 2006-09-22 15:33  cnkker.com  阅读(310)  评论(0编辑  收藏  举报