Microsoft SQL Server

Top  Previous  Next
Solution Installation > TSS Installation > Install TSS on a standard server > Install new TSS/Console > With replication

Overview

This section describes how to install a new version of the software on a fresh system by using SQL Merge replication. Setup of high availability solutions for Microsoft SQL are out of scope for this document but the process for "without replication" can be followed.

 

 

TableCornerTopLeftB

IPT_Empty

IPT_Empty

TableCornerTopRightB

IPT_Empty

Important_icon

•Do not use any TSS/Console until end of whole installation procedure of this section!

•If database is installed on remote server, be sure this server is using proper collation (Latin1_General_CS_AS)

•Do not launch installation of several TSS/Console in parallel. Execute this wizard sequentially.

•Since version 8.0, application pool used by Console, TSS and IptradeNet application need to be configured with framework .NET 4.0 (Classic mode). If you have installed TSS/Console inferior to 8.0 on server and IPTWebSite application pool already exist (configured with framework .NET 2.0) we recommend to create new application pool with proper configuration or use default application pool created during installation of framework .NET 4 (ASP.NET v4.0 Classic).

IPT_Empty

TableCornerBottomLeftB

IPT_Empty

IPT_Empty

TableCornerBottomRightB

 

Here is an overview of installation procedure:

 

•Set permission on replication folder

•Install first instance of TSS/Console (with option 'Type=New database')

•Duplicate database

•Create SQL publisher

•Create SQL subscriber

•Install other instance of TSS/Console (with option 'Type=Existing database')

Set permission on replication folder

Go to the following path : E:\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL

(Base of this path could be different depending of your SQL Server installation)

Add permissions for the NetworkService use on the "repdata" folder

Install first instance of TSS/Console

Proceed as follows:

•Extract the archive TSS-Console-10.1.Y.Z.cab.

•Start the application UIM.exe.

•Select option Install new version of TSS/Console and press Next button.

 

UIM_Install

 

•Next step ask you to choose some options:

oType: Type of  new installation in redundancy.

oNew database: TSS/Console is the first instance (redundancy or replication).

oExisting database: An another instance of TSS/Console has been installed previously on another server. You can press 'Search' button to find all existing database installed on mentioned server.

oDBMS: Type of database management system

oMicrosoft SQL Server : You can use Windows Authentication (logged user must have full control on SQL DATA and must have permission db_owner on master database) or use sa user to connect with SQL Server Authentication. Choose this option as you are in SQL Server section. Choose this option as you are in SQL Server section.

oServer: Server where database is stored. If you have choosen option 'Existing database' select server mentioned during first instance TSS/Console installation.

oAuthentication: Type of authentication to connect to SQL Server (not used with mySQL).

oWindows Authentication

oSQL Server Authentication

oAzure managed identities

oLogin: Login to connect to DBMS. The client ID when using managed identities.

oPassword:  Password to connect to DBMS. Not used with windows authentication nor managed identites.

oDatabase: Existing database created on first TSS/Console install.
 

•Press "Next" button.

 

UIM_Configuration_TSS

 

oSite: HTTP site that will be used. Choose your recently created Site.

oApplication Pool: application pool will be used to install application on.

oIntegrated Security: security mode used to connect to the SQL database. If Domain Authentication is selected, the TSS will use the Application Pool virtual account.

oSQL Login: login application will use to connect to SQL Server or mySQL. Client ID when paired with Azure managed identities. The login is not required with Domain Authentication.

oSQL Password: password application will use to connect to SQL Server or mySQL. The password is not required with Domain Authentication nor Azure managed identities.

oFTP Path: the local directory of the FTP site (used for devices upgrades and configuration).

oNo of TSS/Console: Redundancy instance. Depending of previous selected option it has a different meaning:

oNew database: Determine number of instance used in redundancy. Choose 2 if you do not want to use redundancy (one for primary and one for secondary) or more if you want to use redundancy. Instance number is always 1 for first installed TSS/Console.

oExisting database: Determine the instance number to install (it is not possible to select used instance).

•Press Install button.

 

TableCornerTopLeftB

IPT_Empty

IPT_Empty

TableCornerTopRightB

IPT_Empty

Important_icon

Passwords used for the TSS install must not contain the following special characters:
& < > " # ; = % ' \

IPT_Empty

TableCornerBottomLeftB

IPT_Empty

IPT_Empty

TableCornerBottomRightB

 

UIM_Configuration_TSS2

 

Next step ask you to choose some options about Syslog configuration:

•Enable: Enable syslog log (enable the automatic start of the Windows Service)

•Path: Path of syslog log

•Cleaning period: Delete syslog files that are older than this value (in day)

•File truncation: Maximum file size (in mo) of each syslog log

•Cleaning size: Maximum total file size (in mo) of all syslog log

•Port: Port of syslog log

 

UIM_Configuration_Syslog

 

Next step is status step. If database already exists a confirmation message is displayed to ask you the confirmation to overwrite the database.

 

At the end of the process the following screen is displayed:

 

UIM_Complete

 

The application is now installed in the displayed location and ready to be used. Note the displayed URL for future use.

 

For more information about IptradeNet application see corresponding section: IptradeNet/TSS/Console: Quick Start Guide.

Duplicate database

Do following step before to install next instance(s) of TSS/Console.

•backup database created during first install (publisher)

•restore this database where subscriber will be installed.

•during next install of replicated TSS/Console select restored database.

Create SQL Publisher

On primary server, open SQL Server management studio.
 

Step 1: Right click on Replication/Local Publication > New Publication. Distributor willl be created if necessary.

 

clip0032_png

 

Step 2: Wizard appears and display introduction page. Click Next button.

clip0032

 

 

If you have not done replication installation, this box will appear to set distributor. Choose option 1 (default): primary server is distributor.

 

clip0033

 

Set default folder:

 

clip0034

 

Choose database that will be replicated.

 

clip0035

 

Select Merge publication as publication type.

 

 

If both servers are running with SQL Server 2012 select SQL Server 2008 or later.

 

clip0036

 

Select all tables

 

clip0037

 

Message information is displayed. Click Next button.

 

clip0038

 

No filter to add. Click Next button.

 

 

Leave both checkbox selected. Click Next button.

 

clip0039

 

Step 11: Click on Security Settings… button to select user. Best practice suggests creating a user especially for this task. Do not forget to take care about password expiration policy. User

 

clip0040

 

Process Account: Enter domain\username or computername\username

Password: Enter password of related user.

 

clip0041

 

Leave 1st checkbox checked – 2nd checkbox is uncheck. Click Next button.

 

clip0043

 

Enter name for publication and click on Finish button

 

clip0044

 

Publication creation result.

 

clip0045

 

The new created publication appears now in the Object Explorer under folder ‘YourServer/Replication/Local Publications’.

Create SQL Subscriber

 

TableCornerTopLeftB

IPT_Empty

IPT_Empty

TableCornerTopRightB

IPT_Empty

Important_icon

Before to launch wizard to create subscriber, wait publisher has been 100% initialized (open replication monitor to check publisher status).

IPT_Empty

TableCornerBottomLeftB

IPT_Empty

IPT_Empty

TableCornerBottomRightB

 

 

 

Stay connected on primary server with SQL Server Management Studio.

Right click on Local Subscriptions > New subscriptions...

 

clip0033_png

 

clip0046

 

Select publication that has been created in previous step.

 

clip0047

 

Select 1st option

 

 

Select the server that will be used as subscriber. If it is not in the list (should not be), click on Add SQL Server Subscriber… button; this should be the case if you create the subscription from publisher server.

 

clip0048

 

Enter server logical name (not IP) of subscriber server and click Connect button.

 

 

Select secondary database

 

Configure connection to publisher and subscriber by clicking on

 

 

Enter valid account – you can use same user as step 11 of publisher creation. Best practice suggests creating a user especially for this task. This user must have sufficient rights to access SQL databases. In case of servers are running under domain same user can be used, in the other way use user with same name on both servers. Do not forget to take care about password expiration policy.

 

Process Account: Enter domain\username or computername\username

Password: Enter password of related user.

 

clip0050

 

Click ‘Next’ button.

 

clip0051

 

Select "Run continuously" in the dropdown list as synchronization schedule and click "Next".

 

clip0052

 

Select "Immediately" for subscription initialization.

 

clip0053

 

Select ‘Server’ as subscription type

 

clip0054

 

Select 1st checkbox

 

clip0055

 

Click ‘Finish’ to validate wizard.

 

clip0056

 

Press ‘Close’ button

 

clip0057

 

Once it is done, you can use ‘Replication monitor’ (Right click on replication > Launch Replication Monitor) to get status of replication and check if configuration is done correctly. If status is displaying OK, replication is properly configured.

 

 

Install other instance of TSS/Console

See section Install first instance of TSS/Console to install other instances TSS/Console. Choose option 'Type=Existing database' during installation.

This section can be executed several time depending of number or instance of TSS/Console using replication/redundancy.

 

Important note to read before to begin

Edit web.config and specify a valid connection string. Be sure that IP address of database server is specified in connection string of both applications – Localhost or 127.0.0.1 is not supported. Both database servers have to be different!

 

Valid connection string:

<add name="DatabaseConnection" connectionString="db://192.168.0.1/?driver=SQL Server;db=dbipt;user=iptuser;password=xyz"/>

 

Invalid connection string:

<add name="DatabaseConnection" connectionString="db://localhost/?driver=SQL Server;db=dbipt;user=iptuser;password=xyz"/>

<add name="DatabaseConnection" connectionString="db://127.0.0.1/?driver=SQL Server;db=dbipt;user=iptuser;password=xyz"/>

 

Update Component Manager URLs for Secure Access

As part of the TSS Server Install Operating System > Configuring IIS guide, you were instructed To Configure TLS on IIS

 

All TSS Servers should be secured with certificates.

By default the UIM installer will create Console and TSS links with HTTP and the IP address of the server.

 

To update these links to use HTTPS and FQDN follow this guide: Update Component Manager URLs