About SQL Server to PostgreSQL

Migrate databases from SQL Server and Azure SQL to PostgreSQL on-premises or cloud DBMS.

SQL Server to PostgreSQL converter is a program to migrate databases from SQL Server and Azure SQL to PostgreSQL on-premises or cloud DBMS. The program has high performance due to low-level algorithms of reading and writing data: more than 10 MB per second on an average modern system. Command line support allows to automate the migration process.

SQL Server to PostgreSQL Features

  • Tables, data, indexes, constraints, sequences and views are migrated.
  • Spatial data is migrated.
  • All versions of PostgreSQL (starting from v9.0) and SQL Server are supported.
  • SSL connection for PostgreSQL is supported.
  • Verified support for Heroku and Azure.
  • ODBC or any other middleware is not required.
  • Fast conversion engine (2MB+/sec on a modern hardware platform).
  • Existing PostgreSQL database can be overwritten, merged or synchronized with SQL Server data.
  • Option to filter data using SELECT-queries.
  • Option to customize field mapping (modify name, type, default values for every column).
  • Option to export into PostgreSQL script file.
  • Quick Launch.
  • Stores conversion settings into profile.
  • Support for Unicode.
  • The product can be customized according to customer requirements.

SQL Server to PostgreSQL Limitations

  • Does not convert stored procedures/functions and triggers (MSSQL-to-PostgreSQL Code Converter is able to partially automate this job or our specialists can convert these objects manually as Database Migration Service).

Quick Launch
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 database 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
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.

If you need more options to configure the synchronization or want to reduce the duration of the process via an "incremental" technique, consider MSSQL-PostgreSQL Sync, an alternative product to synchronize SQL Server and PostgreSQL databases.

Views
SQL Server to PostgreSQL converter handles about 90% of syntax constructions involved into SQL Server "CREATE VIEW" statements.

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.