开发者

How do I give sysadmin right to a user for just one database in a SQL Server instance?

If I run this query, does that give sysadmin rights to the database开发者_C百科 the query is being run on or to all databases?

exec sp_addsrvrolemember N'username', sysadmin


sysadmin is SQL Server level admin so it would be all databases with no restrictions at all

You want db_owner in the database for one database

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜