Server-level Roles
As the name implies, server roles allow you to grant server-level permissions. There are two types of server roles:
Fixed server roles — SQL Server provides nine fixed server roles; you can assign principals to these roles but you cannot change role permissions. Fixed server roles are convenient and support backwards compatibility, but user-defined roles are recommended wherever possible because they enable you to fine-tune the permissions. Note that SQL Database does not support fixed server roles. However, it includes two roles, dbmanager and loginmanager, that behave like server roles.
User-defined server roles — You can assign principals and change role permissions.
Creating a user-defined server role is simple:
Create the role using this command:CREATE SERVER ROLE serverrole
Grant permissions to the role using a command like this example:GRANT ALTER ANY DATABASE TO serverrole
Add a principal to the role using this command:ALTER SERVER ROLE serverrole ADD MEMBER [test\exampleuser]
More Info: what jobs can i get with a+ certification
Fixed server roles — SQL Server provides nine fixed server roles; you can assign principals to these roles but you cannot change role permissions. Fixed server roles are convenient and support backwards compatibility, but user-defined roles are recommended wherever possible because they enable you to fine-tune the permissions. Note that SQL Database does not support fixed server roles. However, it includes two roles, dbmanager and loginmanager, that behave like server roles.
User-defined server roles — You can assign principals and change role permissions.
Creating a user-defined server role is simple:
Create the role using this command:CREATE SERVER ROLE serverrole
Grant permissions to the role using a command like this example:GRANT ALTER ANY DATABASE TO serverrole
Add a principal to the role using this command:ALTER SERVER ROLE serverrole ADD MEMBER [test\exampleuser]
More Info: what jobs can i get with a+ certification
Comments
Post a Comment