开发者

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

开发者 https://www.devze.com 2023-02-24 05:22 出处:网络
If I run this query, does that give sysadmin rights to the database开发者_C百科 the query is being run on or to all databases?

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

精彩评论

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