Want to schedule and automate from SQL Server to PostgreSQL copy data task?
Try Withdata DB Copier, a desktop tool, you can scheduled SQL Server to PostgreSQL copy data task easily, just a few mouse clicks!
Let computer automate repetitive SQL Server to PostgreSQL transfer data busy work, DB Copier make our life easier!
Here you can download and install DB Copier.
Schedule and automate SQL Server to PostgreSQL data task
1. Select and run a task from follow list:
- Merge multiple similar SQL Server tables to 1 PostgreSQL table
- Batch copy SQL Server tables to PostgreSQL
- Copy SQL Server query results to PostgreSQL table
- Copy SQL Server table data to PostgreSQL
- Migrate SQL Server to PostgreSQL
- Sync data from SQL Server to PostgreSQL
- Convert SQL Server To PostgreSQL
2. Save session and create .bat file.
More about Withdata DBCopier – the tool to copy SQL Server data to PostgreSQL
SQL Server → PostgreSQL reference
Type mapping
| Value kind | in SQL Server | in PostgreSQL |
|---|---|---|
| Int | int | integer |
| Decimal | decimal(p,s) | numeric(p,s) |
| Float | float | double precision |
| Text | nvarchar(n) | varchar(n) |
| Long text | nvarchar(max) | text |
| Datetime | datetime2 | timestamp |
| Binary | varbinary(max) | bytea |
| Boolean | bit | boolean |
| JSON | nvarchar(max) | jsonb |
Dialect differences
Both SQL Server and PostgreSQL are database servers, so the differences below are dialect-level: the same concept is spelled differently on each side.
| Property | in SQL Server | in PostgreSQL |
|---|---|---|
| port | 1433 | 5432 |
| identifiers | [square brackets] | "double quotes" |
| row limit | SELECT TOP n | LIMIT n |
| dates | datetime, datetime2, date, time | timestamp, timestamptz, date, time |
| long text | nvarchar(max) | TEXT |
| binary | varbinary(max) | BYTEA |
Command line
| Side | Command |
|---|---|
| SQL Server | bcp |
| PostgreSQL | pg_dump or COPY ... TO |
| PostgreSQL (load) | COPY ... FROM |
| SQL Server (load) | bcp, or BULK INSERT |
Convert your data online, free
Free in-browser converters for CSV, Excel, JSON, XML and SQL: Withdata Online Data Conversion. Large files, batch conversion or scheduling? See the offline desktop apps, or browse all data conversion tools.