認識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
- [AlwaysOn] 建立SQL Server高可用性組T-SQL語法:SECONDARY_ROLE子句SQLServer
- [AlwaysOn] 建立SQL Server高可用性組T-SQL語法:PRIMARY_ROLE子句SQLServer
- ansible-role角色
- Oracle OCP(30):ROLEOracle
- Multi Role的實現
- Identity Server 4 從入門到落地(九)—— 客戶端User和Role的解析IDEServer客戶端
- oracle: default role 詳解(轉)Oracle
- RBAC(Role-Based Access Control)
- 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
- AWS Switching to an IAM role (AWS CLI)
- 2.2.4.2.1 What Makes a Privilege or Role Grant Local
- Oracle OCP(31):USER & ROLE & PRIVILEGE 其它Oracle
- MySQL8.0中role的使用實踐MySql
- Oracle 19C DELETE_CATALOG_ROLE角色Oracledelete
- SAP Cloud for Customer的Account Team裡的role如何配置Cloud
- SAP 談談PFCG建立ROLE後打包產生TR
- SAP Fiori Launchpad Tile,UI5應用,和PFCG Role的對應關係UI
- SAP S4HANA BP事務程式碼初始介面的ROLE和Grouping配置
- SQL Server database mail問題診斷一例SQLServerDatabaseAI
- Oracle autotrace 報 SP2-0618 PLUSTRACE role 問題解決Oracle
- 基於Spring Security Role過濾Jackson JSON輸出內容SpringJSON
- [AlwaysOn] 建立SQL Server高可用性組T-SQL語法:DATABASE子句SQLServerDatabase
- 如何在儲存過程中擁有role的許可權儲存過程
- 給某個 SAP S/4HANA 使用者分配 Business Role
- HTML5中的aria與role,WAI-ARIA無障礙HTMLAI
- Ansible自動化部署工具-role模式安裝filebeat實際案例分析模式
- Jenkins使用者許可權管理-Role-based Authorization Strategy外掛Jenkins
- SQL Server解惑——標識列的限制和跳號現象SQLServer
- 複雜網路作業五:第四題——Structural Role 結構角色:ROIXStruct
- POLIR-Society-Organization-Communication: 交流: 組織/社會化的溝通: 首先確定對方姓名+Role/身份+判斷其目的、立場和認知
- SQL Database for Modern DevelopersSQLDatabaseDeveloper
- 消費SAP C4C Web Service時遇到的Authorization role missing錯誤Web
- 基於LDAP&&Role-based Authorization Strategy實現Jenkins團隊許可權管理LDAJenkins
- Greenplumsegment級問題的排查-gp_session_role=utility(含csvlog日誌格式解讀)Session
- Analysis Services基礎知識——深入SQL Server 2008SQLServer