sqlserver中更改数据库所属为dbo的方法

2022-05-09 15:23:35

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

在查询分析器里面执行一次就行,执行第二次会报错
相关文章 大家在看