Database Preparation
To store informations of the configuration 3 databases are required for RTCLauncher:
- Main database - to store application configuration.
- Reporting database – to store reporting data.
- Logging database – to store all application logs.
SQL Compatibility
Supported Platforms for the Database are:
- Microsoft SQL Server 2012
- Microsoft SQL Server 2014
- Microsoft SQL Server 2016
- Microsoft SQL Server 2017
Main Database Creation
Enable Contained Database
- Check that contained databases are enabled on the server.
Go to server Properties:
Server PropertiesEnable contained databases settingSelect Advanced tab.
Set property Containment > Enable Contained Databases to True
Create Empty Database
On your server folder tree expand the Databases folder, select "New Database".
New Database- In the opened "New Database" window, select the following options:
- Containment type: Partial
- Collation to Latin1_General_CI_AS
- Create user with System Administrator permissions on the new DB. → Read chapter below.
- Run CreateStructure.sql script to create RTC Launcher DB structure.
Creation of DB Users / Administrator Permissions on SQL Server Machine
To grant the administrator permissions use the following steps:
Create User
- Go to the machine where SQL Server is installed.
- Open Microsoft SQL Server Management Studio.
- Create new SQL server user as follows:
- In the folder tree expand the Databases folder, expand the folder of your database, expand Security folder.
- Launch context menu of the Users folder and choose New User…
- In the opened Database User – New window handle according to your case:
Case A
DB connection is performed using Integrated Security and RTC Launcher and SQL server are running on different machines:
- Choose Windows user user type
- Fill the User Name field and put the $ sign on the end of computer name along with domain name (dev\rtc01$ for example)
- Set Default schema to dbo
- Continue with the user permissions (→ see below)
Note: dev\rtc01$ - is a computer account (each computer that joins the domain has it to apply policy settings). It will be used to access the database. This is because RTC Launcher is running "NT AUTHORITY\Network Service security context with Integrated Security" enabled by default in its configuration file.
Case B
DB connection is performed using Integrated Security and RTC Launcher and SQL server are running on one machine:
- Choose Windows user user type
- Fill the User Name field with NT AUTHORITY\NETWORK SERVICE value
- Set Default schema to dbo
- Continue with the user permissions (→ see below)
Case C
DB connection is performed using SQL server login and password:
- Choose SQL user with password user type
- Fill the User name
- Fill Password and Confirm Password fields
- Set Default schema to dbo
- Continue with the user permissions (→ see below)
Grant Permissions
- On any user select the Membership tab
- Select the db_owner role.
- Confirm creation of the new user
- Edit "Create_Main.bat" and update DB connection settings. The file will be provided by a Luware representative
- Run "Create_Main.bat" to create DB structure