From:       To:      

SQL Server to PostgreSQL

[FAQ]  [About Migration]  [Tutorial]  [Release Notes]  [Download]  [Buy]
Latest version 7.1 released 10/30/2024

MSSQL-to-PostgreSQL is a tool to migrate databases from SQL Server and Azure SQL to PostgreSQL on-premises or cloud DBMS. Efficient low-level algorithms of reading and writing data guarantee high performance of the migration. Command line version of the tool can be used to automate the migration process.

Features
  • Tables, data, indexes, constraints, sequences and views are migrated
  • Supported source databases: SQL Server (all versions), Azure SQL
  • Target databases: on-premises PostgreSQL (starting from v9.0), Heroku, Azure, Amazon RDS
  • Fast conversion engine (2MB+/sec on a modern hardware platform)
  • ODBC or any other middleware is not required
  • Spatial data is migrated
  • SSL connection for PostgreSQL is supported new
  • Existing PostgreSQL database can be overwritten, merged or synchronized with SQL Server data
  • Option to migrate result of SELECT-queries
  • Option to customize field mapping (modify name, type, default values for every column)
  • Option to convert the source database into PostgreSQL script file
  • Quick Launch
  • Stores conversion settings into profile
  • The product can be customized according to customer requirements
    
SQL Server to PostgreSQL: Select Migration Mode SQL Server to PostgreSQL: Connect to PostgreSQL
SQL Server to PostgreSQL: Migration Settings SQL Server to PostgreSQL: Select Views
Video Demonstration

Limitations

Requirements

Quick Launch

After conversion settings afe stored into profile, the program can be run in Quick Launch mode. Open 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 all settings from the profile and forward the user to the screen with progress indication.

Synchronization

SQL Server to PostgreSQL database converter implements synchronization as combination of insert Microsoft SQL records that are missing in PostgreSQL table and update existing PostgreSQL records with SQL Server data. Source and destination tables must have identical structures and have primary key or unique index defined.

The program does full scan of the source and target tables to find which rows were inserted, deleted or updated. If you need more options to customize the synchronization or want to reduce duration of the process, take a look at MSSQL-PostgreSQL Sync, special software product for bi-directional incremental synchronization between SQL Server and PostgreSQL.

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: 

SQL Server to PostgreSQL: Edit Table

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.

Views

SQL Server to PostgreSQL converter handles about 90% of syntax constructions involved into SQL Server "CREATE VIEW" statements. Some of the conversion rules are described into this whitepaper. Note that the tool does not recognize dependencies for views, you should reorder them so that core views go before dependant ones. Higlight view and use up and down arrown on 'Select views' wizard screen to change order of conversion.

PostgreSQL script file

SQL Server to PostgreSQL database converter allows to migrate SQL Server 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. 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 50 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.

Ordering

For online credit card purchasing select the desired software package in the table below and click the corresponding BUY NOW link. SQL Server to PostgreSQL converter is covered by 30 day money-back guarantee.

SQL Server to PostgreSQL  $79  BUY NOW
MSSQL-to-PostgreSQL Code Converter
a program to migrate stored procedures, functions and triggers from SQL Server to PostgreSQL
 $79  BUY NOW
MS SQL Migration Toolkit
a software pack to convert any data source to SQL Server or Azure SQL and vice versa
 $149  BUY NOW
PostgreSQL Migration Toolkit
a software pack to convert any data source to PostgreSQL and backward
 $149  BUY NOW