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