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
精彩评论