Bootstrap FreeKB - Microsoft SQL Server - Create a new user username and password
Microsoft SQL Server - Create a new user username and password

Updated:   |  Microsoft SQL Server articles

Follow these directions to create a new user username and password in Microsoft SQL Server.

  1. Sign into Microsoft SQL Server as admin with Windows Authentication.
  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, select New Login….
  4. In the Login – New pop-up box, enter the username for the new user.
  5. Bullet SQL Server authentication
  6. Enter the password twice
  7. Click OK.

To allow connections to SQL Server using SQL Server Authentication, we need to configure SQL Server to accept both SQL Server and Windows authentication.

  1. In Object Explorer, right-click on the root folder and select Properties.
  2. In the Server Properties pop-up box, select the Security page.
  3. Bullet SQL Server and Windows Authentication mode.
  4. Click OK.
  5. In Object Explorer, right-click on the root folder and select Restart.

By default, a newly created user will not have access to the databases in SQL Server. You will need to select which databases the newly created user will be able to access.

  1. In Object Explorer, expand Security > Logins.
  2. Right-click on the newly created user account and select Properites.
  3. In the Login Properties pop-up box, select User Mapping.
  4. Check-mark the databases you want the newly created user to have access to.
  5. Check-mark db_owner.

To ensure you are able to sign in with the newly created username and password, exit SQL Server Management Studio, and then launch SQL Server Management Studio again. Change Authentcation to SQL Server Authentication and use the newly created credentials. Also, in Object Explorer try to access the tables in the database you should have access to.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter eb3ba8 in the box below so that we can be sure you are a human.