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

<div class="codetitle"><a style="CURSOR: pointer" data="37614" class="copybut" id="copybut37614" onclick="doCopy('code37614')"> 代码如下:

<div class="codebody" id="code37614">
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

查询分析器里面执行一次就行,执行第二次会报错

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 &#39;EastRiver&#39; 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...