sqlserver中批量修改对象所有者

来源:互联网 发布:宽带网络价格 编辑:程序博客网 时间:2024/05/16 00:31

以超级管理员登录系统,然后执行以下脚本就可以批量修改对象所有者。

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

 

 

 

原创粉丝点击