Sync data from SQL Server to Redshift

Want to sync data from SQL Server to Redshift?

Try Withdata DBCopier, a SQL Server to Redshift converter for Windows, Mac, and Linux, Synchronize SQL Server to Redshift, Easy and Fast.

Download Withdata DBCopier Download DBCopier

Synchronize data from SQL Server to Redshift

Login to SQL Server and target Redshift -> Select source SQL Server tables -> Set target Redshift tables -> Sync SQL Server data to Redshift

Choose source SQL Server database and logon.

sync SQL Server to Redshift - Choose SQL Server and logon

Choose target Redshift database and logon.

sync SQL Server to Redshift - Choose Redshift and logon

Click “Wizard – Import All Tables” at task dialog.

sync from SQL Server to Redshift - Task Window

then show the wizard.

1. Select source SQL Server tables to sync.

sync from SQL Server to Redshift - Open source database

2. List target Redshift tables.

Set “Import Type” to “Replace”, it will do a full synchronization.

sync data from SQL Server to Redshift - full synchronization

Or set “Import Type” to “Upsert”, it will do a upsert synchronization.

sync data from SQL Server to Redshift - upsert synchronization

3. Select Redshift tables to sync.

sync from SQL Server to Redshift - select tables

4. Sync SQL Server data to Redshift.

sync from SQL Server to Redshift - sync


More about SQL Server to Redshift converter

See also:

SQL Server → Redshift reference

Type mapping

Value kindin SQL Serverin Redshift
Intintinteger
Decimaldecimal(p,s)numeric(p,s)
Floatfloatdouble precision
Textnvarchar(n)varchar(n)
Long textnvarchar(max)varchar(max)
Datetimedatetime2timestamp
Binaryvarbinary(max)(none)
Booleanbitboolean
JSONnvarchar(max)super

Dialect differences

Both SQL Server and Redshift are database servers, so the differences below are dialect-level: the same concept is spelled differently on each side.

Propertyin SQL Serverin Redshift
port14335439
identifiers[square brackets]"double quotes"
row limitSELECT TOP nLIMIT n
datesdatetime, datetime2, date, timetimestamp, date
long textnvarchar(max)VARCHAR(MAX)
binaryvarbinary(max)—

Command line

SideCommand
SQL Serverbcp
RedshiftUNLOAD to S3
Redshift (load)COPY from S3
SQL Server (load)bcp, or BULK INSERT

No counterpart

  • SQL Server values of kind Binary have nowhere to go in Redshift.

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.


Posted

in

by