SQL Server to PostgreSQL Migration — Tables, Types, No CSV

Withdata DBCopier - Secure, Fast, and Cross-Platform Tool for SQL Server to PostgreSQL Data Transfer

Download DBCopier


SQL Server to PostgreSQL

What you can do with DBCopier

To migrate SQL Server to PostgreSQL you copy tables — or just the rows a query returns — with the types mapped in the same pass.

SQL Server to Postgres and MSSQL to PostgreSQL describe the same job — the short names people type. Eight operations, one dialog. The first three move a whole database or one table, the next two take many tables, the last three decide the types, keep the two sides in step, or run the job for you.

Whole DB / one table

Migrate the whole database

Every SQL Server table becomes a PostgreSQL table in one run.

  • IDENTITY becomes an identity column, not a plain integer
  • Start here when the PostgreSQL schema does not exist yet
View screenshot
Whole DB / one table

Copy one table

One table in, one PostgreSQL table out.

  • The target is created in public or a schema you map
  • Nothing else in the database is touched
View screenshot
Whole DB / one table

Copy a query result

Copy the rows a SELECT returns, not the whole table.

  • Joins and TOP run on the SQL Server side
  • Only the returned rows are written
View screenshot
Many tables

Batch copy many tables

Many tables, one pass.

  • Map each table to its own target table
  • Replace or append, chosen per table
View screenshot
Many tables

Merge similar tables into one

One table per month or branch becomes one PostgreSQL table.

  • Columns are matched by name after mapping
  • Rows are appended in the order you pick
View screenshot
Both sides

Convert SQL Server types to PostgreSQL

Four types have no PostgreSQL family to land in.

  • uniqueidentifier → uuid, datetime2 → timestamp
  • nvarchar(max) → text, varbinary(max) → bytea
View screenshot
Both sides

Keep both sides in sync

Keep PostgreSQL current without re-exporting.

  • Full sync replaces the contents
  • Incremental sync upserts on the key you name
View screenshot
Automation

Schedule the job

Run it on a timer.

  • Save the session as .bat or .sh
  • Task Scheduler on Windows, Crontab on Linux, launchd on macOS
View screenshot

Why DBCopier for this pair

Transfer SQL Server to PostgreSQL in three steps

  1. Connect both sides. SQL Server server, port, username, password, and target database (support Windows/SQL Server authentication) 📷 and PostgreSQL server, port, username, password, and target database (support for SSH/SSL) 📷.
  2. Pick the task type — table, query, similar tables or all tables — then map fields and preview. 📷
  3. Run it, or save it as a script for Task Scheduler / Crontab / launchd. 📷

SQL Server to PostgreSQL — Type Mapping

SQL ServerPostgreSQL
intinteger
bigintbigint
decimal(p,s)numeric(p,s)
floatdouble precision
nvarchar(n)varchar(n)
nvarchar(max)text
datedate
datetime2timestamp
varbinary(max)bytea
bitboolean
nvarchar(max)jsonb

Common Pitfalls When Transferring SQL Server to PostgreSQL

Frequently Asked Questions

Can I schedule a sync, rather than run one migration?
Yes — the session is saved, turned into a .bat or .sh script and run by Task Scheduler or crontab, so a "sync table data from mssql to postgres" job can run hourly or nightly without anyone opening the GUI. Incremental sync upserts on the key you name; full sync replaces the target contents.
Can I copy just one table?
Yes — single-table mode creates the target table from the source definition and fills it, leaving the rest of the database untouched. Batch mode is a separate choice.
How long does SQL Server to PostgreSQL transfer take?
Withdata DBCopier delivers exceptional speed - millions of rows can be processed in minutes, with sub-second response for single tables or small datasets.
Is Withdata DBCopier secure to use?
Absolutely secure! All data processing happens locally on your machine - no data is transmitted to third-party servers, eliminating data breach risks.
Does Withdata DBCopier support Linux and macOS?
Yes! Withdata DBCopier provides full versions for Windows, Linux (Debian/Ubuntu .deb and RHEL/Fedora/SUSE .rpm), and macOS, with perfect compatibility across all operating systems.
Do I need to write code? Can it run from the command line?
Yes! Withdata DBCopier CLI mode is fully supported on Windows, Linux, and macOS, ideal for automation scripts, batch processing, and scheduled tasks.
What SQL Server versions does Withdata DBCopier support?
Withdata DBCopier support SQL Server 2000, 2005, 2008, 2008 R2, 2014, 2016, 2017, 2019, 2022, 2025.
What PostgreSQL versions does Withdata DBCopier support?
Withdata DBCopier support PostgreSQL 9.x, 10, 11, 12, 13, 14, 15, 16, 17, 18.
Does Withdata DBCopier support batch processing of SQL Server tables?
Absolutely! Select multiple SQL Server tables with one click to complete batch copy/migration/sync to PostgreSQL, significantly improving efficiency.

Start Transfer SQL Server data to PostgreSQL Now

Get the full version Withdata DBCopier for your operating system and start seamless SQL Server to PostgreSQL data transfer

$129 one-time · volume discounts to $99 · 30-day money-back · pricing & licence terms · PostgreSQL to SQL Server →