Home > Database > Mysql Tutorial > sql 修改表的所有者

sql 修改表的所有者

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:57:43
Original
1595 people have browsed it

有时候因为一些权限问题,需要修改表的所有者,下面的方法不错

代码如下:
use 数据库
go
EXEC sp_changeobjectowner ‘原表的所有者.表名',现在的所有者


例如:
代码如下:
exec sp_changeobjectowner 'ahuinan.guestbook',dbo
Related labels:
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