Tuesday 25 February 2014

Microsoft: Create a New SQL Database Login Account

Here are the steps to create a new SQL database login account:

1.  Launch SQL Server Management Studio and connect with the correct credential.

2.  In Object Explorer, expand the folder of the server instance in which you want to create the new login.

3.  Right-click the Security folder, point to New, and select Login….

4.  In the Login – New dialog box, on the General page, enter the name of a user in the Login name box. Alternately, click Search… to open the Select User or Group dialog box.

If you click Search…:
  • Under Select this object type, click Object Types… to open the Object Types dialog box and select any or all of the following: Built-in security principals, Groups, and Users. Built-in security principals and Users are selected by default. When finished, click OK.
  • Under From this location, click Locations… to open the Locations dialog box and select one of the available server locations. When finished, click OK.
  • Under Enter the object name to select (examples), enter the user or group name that you want to find. For more information, see Select Users, Computers, or Groups Dialog Box.
  • Click Advanced… for more advanced search options. For more information, see Select Users, Computers, or Groups Dialog Box - Advanced Page.
  • Click OK.
 
5.  To create a login based on a Windows principal, select Windows authentication. This is the default selection.

6.  To create a login that is saved on a SQL Server database, select SQL Server authentication.
  • In the Password box, enter a password for the new user. Enter that password again into the Confirm Password box.
  • When changing an existing password, select Specify old password, and then type the old password in the Old password box.
  • To enforce password policy options for complexity and enforcement, select Enforce password policy. For more information, see Password Policy. This is a default option when SQL Server authentication is selected.
  • To enforce password policy options for expiration, select Enforce password expiration. Enforce password policy must be selected to enable this checkbox. This is a default option when SQL Server authentication is selected.
  • To force the user to create a new password after the first time the login is used, select User must change password at next login. Enforce password expiration must be selected to enable this checkbox. This is a default option when SQL Server authentication is selected.

7.  To associate the login with a stand-alone security certificate, select Mapped to certificate and then select the name of an existing certificate from the list.

8.  To associate the login with a stand-alone asymmetric key, select Mapped to asymmetric key to, and then select the name of an existing key from the list.

9.  To associate the login with a security credential, select the Mapped to Credential check box, and then either select an existing credential from the list or click Add to create a new credential. To remove a mapping to a security credential from the login, select the credential from Mapped Credentials and click Remove. For more information about credentials in general, see Credentials (Database Engine).

10.  From the Default database list, select a default database for the login. Master is the default for this option.

11.  From the Default language list, select a default language for the login.

12.  Click OK.


Reference:
1.  Create a Login
http://technet.microsoft.com/en-us/library/aa337562.aspx

No comments:

Post a Comment