Difference between revisions of "SQL Server Configuration in QPR UI"

From Mea Wiki
Jump to navigation Jump to search
(218258)
m
Line 2: Line 2:
  
 
When making a new QPR UI installation, check all the instructions in this page. When updating to the latest version of QPR UI, there is no need to change these settings.
 
When making a new QPR UI installation, check all the instructions in this page. When updating to the latest version of QPR UI, there is no need to change these settings.
 +
 +
==Creating new database for QPR UI==
 +
When making a new installation for QPR UI, a new SQL Server database needs to be created as follows:
 +
 +
# Open '''Microsoft SQL Server Management Studio''' and login to a proper instance.
 +
# In '''Object Explorer''' right click '''Databases''' ans from the popup menu select '''New database...'''.
 +
# Define a name for the database and change other settings for the database if needed (default settings will work for QPR UI).
 +
# In '''Object Explorer''' open click '''Security''' and then open '''Logins'''. You can create a new login by right clicking Logins and from the popup menu selecting '''New Login...''' or you may want to use an existing login.
 +
# Open '''Login Properties''' window by double clicking the login. In the '''General''' tab, check that authentication related settings are as desired.
 +
# Open the '''User Mapping''' tab and select the '''Map''' checkbox for the QPR UI database. Click also '''db_owner''' in the bottom side of the tab. Click '''OK'''.
 +
 +
==Checking SQL Server Browser is running==
 +
If named instance are used in the SQL Server, the SQL Server Browser service needs to be running. Check it as follows:
 +
# Open '''Services''' in Windows Control Panel.
 +
# Find service '''SQL Server Browser''' and check that it has status '''Running'''. If the service is missing, SQL Server Browser is not installed.
 +
 +
More information: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-browser-service-database-engine-and-ssas
  
 
==Enabling SQL Server TCP/IP port==
 
==Enabling SQL Server TCP/IP port==
Line 12: Line 29:
  
 
More information: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/configure-a-server-to-listen-on-a-specific-tcp-port
 
More information: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/configure-a-server-to-listen-on-a-specific-tcp-port
 
==Checking SQL Server Browser is running==
 
If named instance are used in the SQL Server, the SQL Server Browser service needs to be running. Check it as follows:
 
# Open '''Services''' in Windows Control Panel.
 
# Find service '''SQL Server Browser''' and check that it has status '''Running'''. If the service is missing, SQL Server Browser is not installed.
 
 
More information: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-browser-service-database-engine-and-ssas
 
  
 
==Enabling SQL Server Authentication==
 
==Enabling SQL Server Authentication==
Line 30: Line 40:
  
 
More information: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/change-server-authentication-mode
 
More information: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/change-server-authentication-mode
 
==Creating new database for QPR UI==
 
When making a new installation for QPR UI, a new SQL Server database needs to be created as follows:
 
 
# Open '''Microsoft SQL Server Management Studio''' and login to a proper instance.
 
# In '''Object Explorer''' right click '''Databases''' ans from the popup menu select '''New database...'''.
 
# Define a name for the database and change other settings for the database if needed (default settings will work for QPR UI).
 
# In '''Object Explorer''' open click '''Security''' and then open '''Logins'''. You can create a new login by right clicking Logins and from the popup menu selecting '''New Login...''' or you may want to use an existing login.
 
# Open '''Login Properties''' window by double clicking the login. In the '''General''' tab, check that authentication related settings are as desired.
 
# Open the '''User Mapping''' tab and select the '''Map''' checkbox for the QPR UI database. Click also '''db_owner''' in the bottom side of the tab. Click '''OK'''.
 
  
 
[[Category: QPR UI]]
 
[[Category: QPR UI]]

Revision as of 08:42, 17 December 2017

This page contains instructions how to configure SQL Server to be used for QPR UI database. Note that these instructions assume that there is an SQL Server 2016 instance with name SQLSERVER2016. Your SQL Server may be other version or have other instance name.

When making a new QPR UI installation, check all the instructions in this page. When updating to the latest version of QPR UI, there is no need to change these settings.

Creating new database for QPR UI

When making a new installation for QPR UI, a new SQL Server database needs to be created as follows:

  1. Open Microsoft SQL Server Management Studio and login to a proper instance.
  2. In Object Explorer right click Databases ans from the popup menu select New database....
  3. Define a name for the database and change other settings for the database if needed (default settings will work for QPR UI).
  4. In Object Explorer open click Security and then open Logins. You can create a new login by right clicking Logins and from the popup menu selecting New Login... or you may want to use an existing login.
  5. Open Login Properties window by double clicking the login. In the General tab, check that authentication related settings are as desired.
  6. Open the User Mapping tab and select the Map checkbox for the QPR UI database. Click also db_owner in the bottom side of the tab. Click OK.

Checking SQL Server Browser is running

If named instance are used in the SQL Server, the SQL Server Browser service needs to be running. Check it as follows:

  1. Open Services in Windows Control Panel.
  2. Find service SQL Server Browser and check that it has status Running. If the service is missing, SQL Server Browser is not installed.

More information: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-browser-service-database-engine-and-ssas

Enabling SQL Server TCP/IP port

  1. Open Sql Server 2016 Configuration Manager in Windows start menu.
  2. Click SQL Server Network Configuration and Protocols for SQLSERVER2016.
  3. Double click TCP/IP.
  4. In Protocol tab, select Enabled is Yes.
  5. In IP Addresses tab, in section IPAll select TCP Port is followed by the port number.
  6. Open SQL Server services and click Restart for SQL Server (SQLSERVER2016).

More information: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/configure-a-server-to-listen-on-a-specific-tcp-port

Enabling SQL Server Authentication

If you are planning to use SQL Server Authentication in QPR UI, check that SQL Server Authentication has been enabled as follows:

  1. Open Microsoft SQL Server Management Studio and login to a proper instance.
  2. In Object Explorer right click the topmost item and select Properties.
  3. Click Security page and select SQL Server and Windows Authentication mode. Click OK.
  4. Open Services in Windows Control Panel.
  5. Find SQL Server (SQLSERVER2016) and for it click Restart from the right click popup menu.

More information: https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/change-server-authentication-mode