Import each table data in a SQL file to a separate DB2 table

by

Want to import data from each table in a SQL file to a separate DB2 table?

Using FileToDB, a SQL to DB2 converter, let import data from each table in a SQL file to a separate DB2 table easily and fast, even though other type database SQL files.

  • Can run in GUI mode, Step by Step, just a few mouse clicks.
  • Can run in Command line, for Scheduled Tasks and Streams.
  • Import SQL data locally, avoid uploading big SQL file(s) to online services.
  • Support large SQL files (> 4GB).
  • Support standard SQL files, and SQL files of database types: Access, DB2, DBF, MySQL, Oracle, PostgreSQL, SQLite, SQL Server, etc.
  • Supports Windows 10, 11, 2003, 2008, 2012, 2016, 2019, 2022.

Download FileToDB Download FileToDB

Import data from each table in a SQL file to a separate DB2 table

Select tables in SQL file -> Set DB2 tables -> Import SQL data to DB2

Choose DB2 and logon.

convert data from each table in a SQL file to a separate DB2 table - Choose DB2 and logon

Click “Wizard – 1 File To N Tables” at task dialog.

Import data from each table in a SQL file to a separate DB2 table - task window

Select the “SQL” file type.

Import data from each table in a SQL file to a separate DB2 table - select file type

then show the wizard.

1. Open a SQL file, select tables.

Import data from each table in a SQL file to a separate DB2 table - open SQL file

2. Show existing DB2 tables, choose “Import Type”.

Import data from each table in a SQL file to a separate DB2 table - choose import type

3. Set DB2 tables.

Import data from each table in a SQL file to a separate DB2 table - set tables

4. Show summary, set “Convert Rows”.

Transfer data from each table in a SQL file to a separate DB2 table - preview

5. Import data from each table in a SQL file to a separate DB2 table.

Copy data from each table in a SQL file to a separate DB2 table - import data

View imported data in DB2 table

SQL tables to DB2 converter - view data

Import data from each table in a SQL file to a separate DB2 table in command line

Save “SQL to DB2” session, then you can:

Set scheduled tasks for importing data from each table in a SQL file to a separate DB2 table

You can schedule and automate this “SQL to DB2” conversion task by:

1) Save session and create .bat (Windows) or .sh (Linux/macOS) file.

2) Set scheduled task.


More about FileToDB – SQL to DB2 converter

30-day free trial Download FileToDB