SQL Server to DB2 Migration — Tables, Types, No BCP

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

Download DBCopier


SQL Server to DB2

What you can do with DBCopier

Eight operations, one dialog. The first three move a whole schema 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 schema

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

  • Schemas map to schemas, tables keep their names
  • Start here when the target schema does not exist yet
View screenshot
Whole DB / one table

Copy one table

One table in, one DB2 table out.

  • The target table is built from the SQL Server definition
  • Nothing else in the database is touched
View screenshot
Whole DB / one table

Copy a query result

Copy the rows a SELECT returns.

  • Filters and joins run on the source 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 per month or branch becomes one 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 DB2

Field by field, decided once.

  • nvarchar(max) → CLOB, varbinary(max) → BLOB
  • datetime2 → TIMESTAMP, uniqueidentifier → CHAR(36)
View screenshot
Both sides

Keep both sides in sync

Keep DB2 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 DB2 in three steps

  1. Connect both sides. SQL Server server, port, username, password, and target database (support Windows/SQL Server authentication) 📷 and DB2 hostname, port, database, username, password 📷.
  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 DB2 — Type Mapping

SQL ServerDB2
intINTEGER
bigintBIGINT
decimal(p,s)DECIMAL(p,s)
floatDOUBLE
nvarchar(n)VARCHAR(n)
nvarchar(max)CLOB
dateDATE
datetime2TIMESTAMP
varbinary(max)BLOB
bitSMALLINT
nvarchar(max)CLOB

Common Pitfalls When Transferring SQL Server to DB2

Frequently Asked Questions

Does IDENTITY survive the move?
The values survive; the property does not. DB2 has its own identity syntax, and inventing it silently would change how the table behaves, so the column arrives as a plain integer with the same values. Add the identity clause on the target if you need generation there.
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 DB2 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 DB2 versions does Withdata DBCopier support?
Withdata DBCopier support DB2 9.1, 9.5, 9.7, 9.8, 10.1, 10,5, 11.1, 11.5, 12.1.
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 DB2, significantly improving efficiency.

Start Transfer SQL Server data to DB2 Now

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

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