Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-07 18:01:18
Original
1260 people have browsed it

sqlserver中更改数据库所属为dbo的方法,需要的朋友可以参考下。

代码如下:
sp_configure 'allow updates','1'
go
reconfigure with override
go
update sysobjects set uid=1 where uid1
go
sp_configure 'allow updates','0'
go
reconfigure with override

在查询分析器里面执行一次就行,执行第二次会报错
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!