惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
博客园_首页
M
MIT News - Artificial intelligence
Project Zero
Project Zero
C
CXSECURITY Database RSS Feed - CXSecurity.com
V2EX - 技术
V2EX - 技术
G
Google Developers Blog
H
Hacker News: Front Page
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
GbyAI
GbyAI
C
Cisco Blogs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
酷 壳 – CoolShell
酷 壳 – CoolShell
The Hacker News
The Hacker News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Simon Willison's Weblog
Simon Willison's Weblog
A
Arctic Wolf
H
Heimdal Security Blog
量子位
小众软件
小众软件
Help Net Security
Help Net Security
博客园 - Franky
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
N
News | PayPal Newsroom
T
Tor Project blog
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
N
News and Events Feed by Topic
T
Tailwind CSS Blog
Webroot Blog
Webroot Blog
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
The Register - Security
The Register - Security
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
腾讯CDC
P
Palo Alto Networks Blog
S
Secure Thoughts
D
Darknet – Hacking Tools, Hacker News & Cyber Security
TaoSecurity Blog
TaoSecurity Blog
Scott Helme
Scott Helme
T
Tenable Blog
C
Cybersecurity and Infrastructure Security Agency CISA
D
Docker
美团技术团队

博客园 - cean

MSSQL 2005删除所有表的语句[转] C#的String.Split方法[转] StreamReader读取记事本 - cean - 博客园 表中随机查询记录 几种基本的数字正则表达式[转] 浅谈window.attachEvent [转] 在.ashx文件下使用session[转] - cean - 博客园 典文回顾:程序员规划职业道路时需考虑的十个问题[转CSDN] 水印坐标设置 [转]HTML 编辑器大全 关于使用updatepanle后页面还会刷新的个人解决方法。 - cean - 博客园 [转]Asp.net(Ajax)表单验证 函数包 母版页判断登陆 及 母版页与内容页的执行顺序 - cean [转]SQL2000和SQL2005同时安装问题 C#泛型详解[转] .Net课堂:总结必须学习的10项.NET技术[转] 如何建立最初的三层架构[转] 运行asp.net时弹出the status code returned from the server was:404错误提示 iis5.1配置php运行环境
MSSQL 2000更改表和存储过程的所有者
cean · 2010-01-26 · via 博客园 - cean

更改存储过程的所有者:

declare tb cursor local for
select 'sp_changeobjectowner ''['+replace(user_name(uid),']',']]')+'].['
+replace(name,']',']]')+']'',''dbo'''
from sysobjects
where xtype in('U','V','P','TR','FN','IF','TF') and status>=0
open tb
declare @s nvarchar(4000)
fetch tb into @s
while @@fetch_status=0
begin
exec(@s)
fetch tb into @s
end
close tb
deallocate tb
go

更改表的所有者:

exec sp_MSforeachtable 'exec sp_changeobjectowner "?","dbo"'

=============

运行时,会提示出错警告,不管它,再运行一次即可。