認識SQL Server2000 Server Role 和 Database Role
There are several fixed roles defined in SQL Server 2000 and SQL Server version 7.0 during setup. Users can be added to these roles to pick up the associated administration permissions. These are server-wide roles.
Fixed server role | Description |
---|---|
sysadmin | Can perform. any activity in SQL Server. |
serveradmin | Can set serverwide configuration options, shut down the server. |
setupadmin | Can manage linked servers and startup procedures. |
securityadmin | Can manage logins and CREATE DATABASE permissions, also read error logs and change passwords. |
processadmin | Can manage processes running in SQL Server. |
dbcreator | Can create, alter, and drop databases. |
diskadmin | Can manage disk files. |
bulkadmin | Can execute BULK INSERT statements. |
You can get a list of the fixed server roles from sp_helpsrvrole, and get the specific permissions for each role from sp_srvrolepermission.
Each database has a set of fixed database roles. While roles with the same names exist in each database, the scope of an individual role is only within a specific database. For example, if Database1 and Database2 both have user IDs named UserX, adding UserX in Database1 to the db_owner fixed database role for Database1 has no effect on whether UserX in Database2 is a member of the db_owner role for Database2.
Fixed database role | Description |
---|---|
db_owner | Has all permissions in the database. |
db_accessadmin | Can add or remove user IDs. |
db_securityadmin | Can manage all permissions, object ownerships, roles and role memberships. |
db_ddladmin | Can issue ALL DDL, but cannot issue GRANT, REVOKE, or DENY statements. |
db_backupoperator | Can issue DBCC, CHECKPOINT, and BACKUP statements. |
db_datareader | Can select all data from any user table in the database. |
db_datawriter | Can modify any data in any user table in the database. |
db_denydatareader | Cannot select any data from any user table in the database. |
db_denydatawriter | Cannot modify any data in any user table in the database. |
You can get a list of the fixed database roles from sp_helpdbfixedrole, and get the specific permissions for each role from sp_dbfixedrolepermission.
Every user in a database belongs to the public database role. If you want everyone in a database to be able to have a specific permission, assign the permission to the public role. If a user has not been specifically granted permissions on an object, they use the permissions assigned to public.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-515967/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Laravel workflow with database and roleLaravelDatabase
- 認識SQL Server2000 master資料庫SQLServerAST資料庫
- 認識SQL Server2000 tempdb資料庫SQLServer資料庫
- 認識SQL Server2000 msdb資料庫SQLServer資料庫
- 認識SQL Server2000 Log Shipping 【zt】SQLServer
- 認識SQL Server2000 model資料庫SQLServer資料庫
- 【轉帖】認識SQL Server2000 中的CheckPointSQLServer
- 認識SQL Server2000 幾種恢復模式SQLServer模式
- 認識SQL Server2000 三種恢復模式SQLServer模式
- Database Creation on 11.2 Grid Infrastructure with Role SeparationDatabaseASTStruct
- PostgreSQL Role ManagementSQL
- oracle set roleOracle
- Ctrete new role
- [AlwaysOn] 建立SQL Server高可用性組T-SQL語法:PRIMARY_ROLE子句SQLServer
- Oracle OCP(30):ROLEOracle
- 聊聊Oracle Default RoleOracle
- 認識SQL Server2000 資料庫備份的型別[ZT]SQLServer資料庫型別
- [AlwaysOn] 建立SQL Server高可用性組T-SQL語法:SECONDARY_ROLE子句SQLServer
- Multi Role的實現
- Create a secure application roleAPP
- ansible-role角色
- 9 Role Transitions 角色轉換
- 2.2.4.1 Principles of Privilege and Role Grants in a CDB
- 2.2.4 Overview of Privilege and Role Grants in a CDBView
- MySQL角色(role)功能介紹MySql
- oracle: default role 詳解(轉)Oracle
- Oracle 角色 自定義角色 RoleOracle
- [轉載] The role of the Software Architect
- Identity Server 4 從入門到落地(九)—— 客戶端User和Role的解析IDEServer客戶端
- Oracle OCP(31):USER & ROLE & PRIVILEGE 其它Oracle
- AWS Switching to an IAM role (AWS CLI)
- 聊聊spring security的role hierarchySpring
- 有關Oracle role的總結Oracle
- Role of Public,Private,Virtual, and SCAN IPs
- Oracle角色許可權之Default RoleOracle
- 有關role的一點總結!
- RBAC(Role-Based Access Control)
- 認識及操作SQL Server 資料庫SQLServer資料庫