FAQ  |  Site map  |  Contact Us
About Us How to Buy Products Discounts Migration Service Support Become a Partner Articles

MS SQL to PostgreSQL


Latest version 2.5 released 05/29/2017

MSSQL-to-PostgreSQL is a program to migrate MS SQL databases to PostgreSQL. The database migration tool has high performance: 2,5 GB of data is migrated within less than 20 minutes on a modern hardware platform. Command line support allows to script and schedule the conversion process.

Features
  • The converter supports all versions of PostgreSQL and Microsoft SQL
  • Option to export SQL Server database into PostgreSQL script file
  • Verified support for cloud variations of DBMS Azure SQL and Heroku
  • Options to process existing PostgreSQL database: overwrite, merge or synchronize
  • Fast conversion engine
  • Option to filter data using SELECT-queries
  • MS SQL to PostgreSQL converter allows to select individual tables for migration
  • The program converts indexes and foreign keys with all necessary attributes
  • Option to customize field mapping (modify name, type, default values for every column)
  • Command line support
  • Quick Launch
  • Stores conversion settings into profile
  • Support for Unicode

Limitations

  • Does not convert views, stored procedures and triggers
  • Demo version converts only 50 records per table
  • Demo version does not convert foreign keys
    

Download trial version of MS SQL to PostgreSQL converter

Requirements

  • Microsoft SQL environment (server or client components of MS SQL must be installed on the same machine where you run MS SQL to PostgreSQL converter)
  • PostgreSQL environment (server or client components of PostgreSQL are required on the same machine where you run MSSQL to PostgreSQL tool)
  • Necessary privileges to write into the destination database
  • Supported OS: Windows XP(SP2 or SP3)/2003/Vista/Server 2008/7/8/10

Quick Lauch

Once you stored conversion settings into profile you can run the program in Quick Launch mode. Just launch Windows Explorer and double-click on the profile description (.m2p) file with left mouse button. This will cause SQL Server to PostgreSQL converter to load the necessary settings from the specified profile. Then you will be taken right to the screen with progress indication without entering all conversion settings.

Synchronization

MS SQL to PostgreSQL converter synchronizes databases by inserting Microsoft SQL records that not exist in the destination table and updating PostgreSQL records with MS SQL data. For successful synchronization source and target tables must have equal structures as well as primary key or unique index defined. Assume both MS SQL and PostgreSQL databases have table "People" defined as below:

    People(
	ID INT NOT NULL, 
	FName VARCHAR(50),
	LName VARCHAR(50), 
	EMail VARCHAR(50), 
        Primary Key (ID)
    );

This table has the following contents in MS SQL database:

    2	Andrew		White		a.white@corporation.com
    3	Phil		Johnson		p.johnson@gmail.com

And in PostgreSQL database:

    1	John		Smith		j.smith@msn.com
    2	Andrew		White		a.white@yahoo.com
After migrating data from MS SQL to PostgreSQL in "Synchronize" mode Microsoft SQL table is kept untouched and PostgreSQL table is modified as (pay attention to the 2nd row):
    1	John		Smith		j.smith@msn.com
    2	Andrew		White		a.white@corporation.com
    3	Phil		Johnson		p.johnson@gmail.com

Customize table structure

This feature can be accessed by double click on the corresponding table name in "Selected tables" list of "Step 4 of 5" wizard page.

This will cause the following dialog box to appear:

To customize type mapping select the appropriate item in the listview on the left and specify new name, type and default value for the field using "Field info" group of controls. Please note that listview on the left contains column attributes of the original types mapping, new custom types and attributes will be displayed in "Field info" controls when the corresponding item is highlighted in the listview.

PostgreSQL script file

MSSQL to PostgreSQL converter allows users to migrate Microsoft SQL database into PostgreSQL format even when there is no connection to PostgreSQL server available for some reason. Following this way, the program converts SQL Server data into a local PostgreSQL script file instead of migrating it to PostgreSQL server directly. The resulting file contains PostgreSQL statements to create all tables and to fill them with the data. Click here to learn how to import dump file into PostgreSQL database.

Try before you buy

Still not sure the program fits your needs? Try free demo version with limited features. It will allow you to convert only five records for each database table, it does NOT convert queries/views and foreign keys. Test the quality of the demo and come back to place an order if satisfied with the results.

Download trial version of SQL Server to PostgreSQL converter

 

MS SQL to PostgreSQL (single user license)
Click here for more information about licensing
$49 ORDER NOW
Two Products Bundle
order MS SQL to PostgreSQL + PostgreSQL to MS SQL, save $24.5
$73.5 ORDER NOW
MS SQL Migration Toolkit
software pack to convert any data source to Microsoft SQL
and vice versa
$99 ORDER NOW
PostgreSQL Migration Toolkit
software pack to convert any data source to PostgresSQL
and vice versa
$99 ORDER NOW