Difference between revisions of "SQL Server Configuration in QPR UI"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | This page contains | + | This page contains instructions for SQL Server configuration. 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. |
== SQL Server TCP/IP port configuration == | == SQL Server TCP/IP port configuration == | ||
− | If | + | If named instance are used in the SQL Server, a TCP port needs to be assigned to the instance as follows: |
# Open '''Sql Server 2016 Configuration Manager''' in Windows start menu. | # Open '''Sql Server 2016 Configuration Manager''' in Windows start menu. | ||
Line 8: | Line 8: | ||
# Double click '''TCP/IP'''. | # Double click '''TCP/IP'''. | ||
# In '''Protocol''' tab, select '''Enabled''' is '''Yes'''. | # In '''Protocol''' tab, select '''Enabled''' is '''Yes'''. | ||
− | # In '''IP Addresses''' tab, in section '''IPAll''' select '''TCP Port''' is '''1433'''. | + | # In '''IP Addresses''' tab, in section '''IPAll''' select '''TCP Port''' is '''1433'''. (To be confirmed: Is this actually enough?) |
# Open '''SQL Server services''' and click '''Restart''' for '''SQL Server (SQLSERVER2016)'''. | # Open '''SQL Server services''' and click '''Restart''' for '''SQL Server (SQLSERVER2016)'''. | ||
== Checking SQL Server Browser is running == | == Checking SQL Server Browser is running == | ||
− | If | + | 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. | # 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. | # Find service '''SQL Server Browser''' and check that it has status '''Running'''. If the service is missing, SQL Server Browser is not installed. | ||
Line 19: | Line 19: | ||
If you are planning to use '''SQL Server Authentication''' in QPR MobileDashboard, check that SQL Server Authentication has been enabled as follows: | If you are planning to use '''SQL Server Authentication''' in QPR MobileDashboard, check that SQL Server Authentication has been enabled as follows: | ||
− | # Open '''Microsoft SQL Server Management Studio''' and login to | + | # Open '''Microsoft SQL Server Management Studio''' and login to a proper instance. |
# In '''Object Explorer''' right click the topmost item and select '''Properties'''. | # In '''Object Explorer''' right click the topmost item and select '''Properties'''. | ||
# Click '''Security''' page and select '''SQL Server and Windows Authentication mode'''. Click '''OK'''. | # Click '''Security''' page and select '''SQL Server and Windows Authentication mode'''. Click '''OK'''. | ||
Line 25: | Line 25: | ||
# Find '''SQL Server (SQLSERVER2016)''' and for it click '''Restart''' from the right click popup menu. | # Find '''SQL Server (SQLSERVER2016)''' and for it click '''Restart''' from the right click popup menu. | ||
+ | ==Creating new database for QPR MobileDashboard== | ||
+ | When making a new installation for QPR MobileDashboard, 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 MobileDashboard). | ||
+ | # 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 MobileDashboard database. Click also '''db_owner''' in the bottom side of the tab. Click '''OK'''. | ||
[[Category: QPR MobileDashboard]] | [[Category: QPR MobileDashboard]] |
Revision as of 08:40, 26 March 2017
This page contains instructions for SQL Server configuration. 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.
SQL Server TCP/IP port configuration
If named instance are used in the SQL Server, a TCP port needs to be assigned to the instance as follows:
- Open Sql Server 2016 Configuration Manager in Windows start menu.
- Click SQL Server Network Configuration and Protocols for SQLSERVER2016.
- Double click TCP/IP.
- In Protocol tab, select Enabled is Yes.
- In IP Addresses tab, in section IPAll select TCP Port is 1433. (To be confirmed: Is this actually enough?)
- Open SQL Server services and click Restart for SQL Server (SQLSERVER2016).
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.
Enabling SQL Server Authentication
If you are planning to use SQL Server Authentication in QPR MobileDashboard, check that SQL Server Authentication has been enabled as follows:
- Open Microsoft SQL Server Management Studio and login to a proper instance.
- In Object Explorer right click the topmost item and select Properties.
- Click Security page and select SQL Server and Windows Authentication mode. Click OK.
- Open Services in Windows Control Panel.
- Find SQL Server (SQLSERVER2016) and for it click Restart from the right click popup menu.
Creating new database for QPR MobileDashboard
When making a new installation for QPR MobileDashboard, 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 MobileDashboard).
- 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 MobileDashboard database. Click also db_owner in the bottom side of the tab. Click OK.