PANTHEON™ manual

 Categories
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Expand]Guides for PANTHEON
 [Collapse]User Manuals for PANTHEON
  [Collapse]User Manual for PANTHEON
   [Collapse]Getting Started
     Dictionary of terms
     First steps with PANTHEON
    [Expand]Using PANTHEON at Tecta, a fictional company
    [Expand]Instructions for Ensuring Compliance of PANTHEON with SAS
    [Expand]PANTHEON Installation
    [Collapse]PANTHEON System
     [Expand]PANTHEON System data
     [Collapse]MS SQL Server
       Download and install MS SQL Server
       Upgrading MS SQL Server to 2019 or 2022
       MS Management Studio - Download and install
       Restoring database onto SQL server
       Adding users to server level (AddUser_PAX)
       Installing SQL for external access
       Installing PANTHEON clients
       Nastavitve MS SQL strežnika za večja Pantheon™ oko
       Changing SQL Sort Order
      [Collapse]MS SQL Server Security
        Creating Server Logins
        SQL Server Service Settings
        Fixed Server Role
        Fixed Database Role
        Windows Authentication
        SQL Server Authentication
        Encrypting SQL Server Connections
      [Expand]Useful SQL Queries
       SQLExecute
      [Expand]SQL Server Jobs
     [Expand]Microsoft Windows Utilities
     [Expand]Security Policy
     [Expand]Database Administration
    [Expand]PANTHEON Basics
    [Expand]PANTHEON Help
    [Expand]Materials and Goods Movements
    [Expand]Assigning Identifiers
    [Expand]Frequently asked questions about Pantheon (F.A.Q.)
    [Expand]Archive
   [Expand]User Manual for eBusiness
   [Expand]Settings
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]Service
   [Expand]Help
   [Expand]Personnel
   [Expand]Financials
   [Expand]Analytics
  [Expand]User Manual for PANTHEON Retail
  [Expand]User manual for PANTHEON Vet
  [Expand]User Manual for PANTHEON Farming
[Expand]PANTHEON Web
[Expand]PANTHEON Granules
[Expand]User Site

Load Time: 687.5284 ms
print   |
Label

Fixed Database Role

Fixed Database Role

Fixed Database Role

Database roles apply separately for each database. A database role can be assigned to any Windows NT user or group, or SQL user or group.

The following database roles are available:

 

Database Role Permissions
db_owner Can perform any activity.
db_accessadmin Can manage users and user groups.
db_datareader Can read data from a database.
db_datawriter Can add, edit and delete data in a database.
db_ddladmin Can add, edit and delete database objects.
db_securityadmin Can manage roles and permissions.
db_backupoperator Can make backups.
db_denydatareader Cannot read data in a database.
db_denydatawriter Cannot edit data in a database.

Assinging Database Roles with Enterprise Manager

  1. In Enterprise Manager, find the desired SQL Server instance.
  2. Go to Databases and expand the tree of the desired database.
  3. Go to Roles.
  4. In the right-hand panel, right-click the role you wish to assing and select Properties.
  5. Click the Add… button and select the users you wish to assign the selected role to. Note that you can select only users of the selected database.

  004028.gif

Assinging Database Roles with T-SQL

Adding Users

To add a user, use the command

sp_addrolemember [@rolename =] 'role', [@membername =] 'security_account'

 

[@rolename =] 'role'
The name of the server role in the current database.
[@membername =] 'security_account'
The account that should be added to the role. It can be any valid SQL Server user, SQL Server role, Windows NT user or group with access to the current file.
When adding Windows NT groups or users, specify the name that is known to the file (added with sp_grantdbaccess).

Removing Users

To remove a user, use the command

sp_droprolemember [@rolename =] 'role', [@membername =] 'security_account' 

 

[@rolename =] 'role'
The name of the role from which the user is to be removed.
[@membername =] 'security_account'
The account that should be removed from the role. It can be any valid SQL Server user, SQL Server role, Windows NT user or group with access to the current file.
When removing Windows NT groups or users, specify the name that is known to the file (added with sp_grantdbaccess).

Adding Accounts

To grant access to the current file, use the command

sp_grantdbaccess [@loginame =] 'login' [,[@name_in_db =] 'name_in_db' ] 

 

[@loginame =] 'login'
The login for the new account. Windows NT logins must include the domain name (e.g.  domain\login).
[@name_in_db =] 'name_in_db'
The name of the new account. It must be a unique name.

Removing Accounts

To revoke access to the current file, use the command

sp_revokedbaccess [@name_in_db =] 'name' 

 

[@name_in_db =] 'name'
The account for which access should be revoked.
When removing Windows NT groups or users, specify the name that is known to the file (added with sp_grantdbaccess).

Show Configuration

xp_loginconfig ['config_name']

 

'config_name'
The name of the parameter that should be shown. If empty, the whole configuration will be shown.



Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!