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

sql 修改表的所有者

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:57:43
Original
1588 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
Latest Issues
sql file
From 1970-01-01 08:00:00
0
0
0
php - Overhead of prepare vs sql?
From 1970-01-01 08:00:00
0
0
0
Print sql statement
From 1970-01-01 08:00:00
0
0
0
Pass array to SQL insert query using PHP
From 1970-01-01 08:00:00
0
0
0
sql optimization or
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template