SQL Server 服务器及数据库用户角色权限

Server RoleDescription
bulkadminMembers can run the BULK INSERT statement. Membership in this role still requires that non-sysadmin users have access to the object being updated.
dbcreatorMembers can create, alter, drop, and restore any database.
diskadminThis role is used for managing disk files. Most of the capabilities relate to add ing and removing backup devices.
processadminMembers can terminate processes that are running in an instance of SQL Server. This role is useful if you want to give someone the ability to kill a long-running query or an orphaned connection.
publicAll valid SQL Server logins are members of the public role.
securityadminMembers can manage logins and their properties. They can GRANT, DENY, and REVOKE server-level permissions as well as database-level permissions. They can also reset passwords for SQL Server logins. This role has no rights to assign database permissions. If you want securityadmin members to be able to do this, you must make their logins part of the db_accessadmin fixed database role for the specific database.
serveradminMembers can change server-wide configuration options and shut down the server.
setupadminMembers can add and remove linked servers and also execute some system stored procedures.
sysadminMembers can perform any activity on the server. By default, all members of the Windows BUILTIN/Administrators group, the local administrator's group, are members of the sysadmin fixed server role. The SQL Server service account is also a member of this role.

 

Database RoleDescription
db_accessadminMembers can add or remove access for Windows logins, Windows groups, and SQL Server logins.
db_backupoperatorMembers can back up the database.
db_datareaderMembers can read all data from all user tables.
db_datawriterMembers can add, delete, or change data in all user tables.
db_ddladminMembers can run any data definition language (DDL) command in a database.
db_denydatareaderMembers cannot read any data in the user tables within a database.
db_denydatawriterMembers cannot add, modify, or delete any data in the user tables within a database.
db_ownerMembers can perform all configuration and maintenance activities on the database, including dropping the database.
db_securityadminMembers can modify role membership and manage permissions.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值