Migrating the PostgreSQL Data to MS SQL Server

In a simple three stage process, migrate the PostgreSQL data and run the AD360 Server with MS SQL Server.


Backing up PostgreSQL Data


Configuring MS SQL Server

Common Settings to be performed in MS SQL Server


Providing credentials to other users in the domain

If not, right click the Logins, New Login and provide a corresponding user name. The New user must have the sysadmin server level role and database level role of db_owner.

Follow the steps to provide the sysadmin role permission:
Right click the user, click 'Properties'
Go to 'Server Roles' → Check sysadmin and click 'OK'

Note: Details about user roles: Refer the documents in the following links:
For Server Level Roles: http://msdn.microsoft.com/en-us/library/ms188659.aspx
For Database Level Roles: http://msdn.microsoft.com/en-us/library/ms189121.aspx
For additional resources: http://www.mssqlcity.com/Articles/Adm/SQL70Roles.htm
Server Role of the user should be 'sysadmin' and Database Role of the user should be 'db_owner'.
The members of sysadmin server role can perform any activity in SQL Server and have completes control over all database functions.
The members of db_owner database role can perform any activity in the database.


MS SQL Server in local computer

Copy the following files to <AD360 Home>\bin folder.


MS SQL Server in remote computer

Note: Please install the corresponding SQL Native Client / Command line Utilities in the AD360 machine as per the MS SQL Server version and CPU type of AD360 machine.


MS SQL Server Version

Command line Utilities and Native Client

2008

Download

2008 R2 (x64)

Download

2008 R2 (x86)

Download

2012

Download

2014

Download


After installing the Command Line utilities, please copy the following files:

Copy the files to <AD360 Home>\bin folder.

Windows Firewall Settings

If the Firewall is enabled in MS SQL Server machine, the TCP and UDP Ports need to be opened.

UDP Port is normally 1434.

To check TCP Port settings, open SQL Configuration Manager:

Invoke the <AD360 Home>\bin\ChangeDB.bat in command prompt to configure the MS SQL SERVER credentials like ServerName, Port, UserName and Password.

In the wizard screen, select Server Type as MSSQL Server. Available SQL Server Instances are listed in a combo box. Enter the Host Name and Named instance of the SQL Server from the instances.


Migrating PostgreSQL Data to MS SQL