PANTHEON™ Help

 Toc
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for PANTHEON
  [Expand]Guide for PANTHEON
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [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
[Collapse]PANTHEON Web
 [Collapse]Guides for PANTHEON Web
  [Expand]Guide for PANTHEON Web Light
  [Expand]Guide for PANTHEON Web Terminal
  [Expand]Guide for PANTHEON Web Legal
  [Expand]Old products Archive
 [Collapse]User Manuals for PANTHEON Web
  [Expand]Getting started PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
  [Expand]User Manual for PANTHEON Web Terminal
  [Expand]User Manual for PANTHEON Web Legal
  [Expand]Old products Archive
[Collapse]PANTHEON Granules
 [Collapse]Guides for PANTHEON Granules
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]Dashboard Granule
  [Expand]B2B Orders Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
 [Collapse]User Manuals for PANTHEON Granules
  [Expand]Getting started
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]B2B Orders Granule
  [Expand]Dashboard Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
  [Expand]Archive
[Expand]User Site

Load Time: 421.8626 ms
"
  2011 | 2561 | 336921 | Updated
Label

Creating Server Logins

Creating Server Logins

Creating Server Logins

A server login grants you access to the SQL Server instance. How much access you have depends on your login privileges.

The SQL Server installation uses the default login name sa (system administrator) without a password. The password can be changed only after the installation is complete.

Sa is a special login. By default it has the role of sysadmin fixed server, which cannot be changed. Even though sa is the default administrator login, it is not recommended to use it. Instead, create new users and assign them the sysadmin role.

When using SQL Server with Windows NT authentication, the sa login is irrelevant. But when using Mixed Mode, the default password must be changed to prevent unautorized access.

Creating a Login with Enterprise Manager

  1. In Enterprise Manager, find the desired SQL Server instance.
  2. Go to Security and then Logins.
  3. In the right-hand panel, existing logins for the server instance are listed. Right-click inside the panel and select New Login...
  4. Type in a name and password for the login.
  5. In the Server Roles tab, select a server role for the login.
  6. In the Database Access tab, select to which databases the login has access (see also Database role).
  7. Click OK to create the login.

 

The login name can be from 1 to 128 characters long, cannot be blank (null), cannot contain backslashes (\), and cannot be a reserved name.

004026.gif

Creating a Login with T-SQL

The T-SQL syntax for the function for adding logins is like follows:

sp_addlogin [@loginame =] 'login'
[,[@passwd =] 'password']
[,[@defdb =] 'database']
[,[@deflanguage =] 'language']
[,[@sid =] 'sid']
[,[@encryptopt =] 'encryption_option']

Parameters

[@loginame =] 'login'
The login name.
[@passwd =] 'password'
The login password; default is NULL.
[@defdb =] 'database'
The default database for the login; default is master.
[@deflanguage =] 'language'
The default language for the login; default is the same as the SQL Server instance.
[@sid =] 'sid'
The security identification number; default is zero. If it is zero at login, the system generates a unique SID.
[@encryptopt =] 'encryption_option'
Password encryption option.

Deleting a Login

You can delete a login by running the following command:

sp_droplogin [@loginame =] 'login'

[@loginame =] 'login' is the name of the login you wish to delete.

Changing the Password

You can change a login's password with the following command:

sp_password [[@old =] 'old_password',] 
{[@new =] 'new_password'}
[,[@loginame =] 'login']

Parameters

[@old =] 'old_password'
The old password; default is NULL.
[@new =] 'new_password'
The new password.
[@loginame =] 'login'
The login whose password you want to change. Only logins with the sysadmin fixed role can change passwords.

Granting and Denying Access

If you want to explicitly deny server access to a login, use the following command:

sp_denylogin [@loginame =] 'login'

where [@loginame =] 'login' is a user name or Windows NT group.

If you want to grant server access to a login, use the following command:

sp_grantlogin [@loginame =] 'login'

where [@loginame =]'login' is a user name or Windows NT group.



 

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