Configure SQL Server users

Bp VIP.net users must have their Windows accounts added to the SQL Server database to access the database within Bp VIP.net. The Windows user account must be set up on the local machine or as part of a domain group before you can add the user to SQL Server.

IMPORTANT SQL Server security is a complex issue, and the procedures in this section describe the simplest method for adding a user to your SQL Server database with basic security and assume a closed network. If you wish to fully secure your database in an integrated network or larger practice, Best Practice Software recommend consulting with an SQL Server database administrator.

You will need to know the computer name of the SQL server machine, and workstations (if you are adding local users to SQL Server).

Identify a computer name

  1. Log in to Windows.
  2. Select the Windows Start icon and type 'PC Name' into the search bar.
  3. Select View your PC name

  4. View PC Name
  5. The About information screen will appear displaying the Device Name. In the following example, the computer name is 'DESKTOP-AGKPVD5'.
  6. PC Properties

Add a user to SQL Server

  1. From Windows on the SQL Server machine, go to StartAppsMicrosoft SQL ServerSQL Server Management Studio. Management Studio will prompt for the database name and login.
  2. Connect to SQL Server

  3. Enter the name of the SQL Server machine as the Server name, leave Windows Authentication selected, and click Connect to open Management Studio.
  4. From the object explorer, open SecurityLogins. Right-click Logins and select New Login....
  5. SQL Server new login

  6. The Login - New screen will appear. From the General tab, enter the Windows account name you want to add to SQL Server. Enter the name in the format '<PC or domain name>\<user or group name>'.
  7. The following example shows local account 'BpAdmin' being added on a computer with a name of 'DESKTOP-AGKPVD51'.

    SQL New User example for individuals

    Adding individual users is fine for small practices with only a few users and workstations. In a larger practice, you would add domain groups.

    NOTE SQL Server allows domain groups to be added from Active Directory. The group must already exist in Active Directory to be added.

    The following example shows the group 'Practice Staff' from the domain 'TEAM'.

    SQL Server add user example domain group

  8. Leave Windows authentication selected and do not change the other fields in the screen. Click the Server Roles tab.
  9. The public role is selected by default. Tick the sysadmin role.
  10. SQL Server server roles

    IMPORTANT Giving users the Sysadmin Server role is the simplest method of allowing access to the database, but Server roles with reduced rights and full database access will suffice. If you wish to fully secure your database in an integrated network or larger practice, Best Practice Software recommend consulting with an SQL Server database administrator.

  11. Click OK to save the user or group. The Bp VIP.net user will now be able to access the database.
  12. Repeat steps 3—7 for all Bp VIP.net users or Windows user groups.

SQL Server user addition is complete.

 

Last modified: 13 September 2022