First, you need
DB2ToAccess is a software that export DB2 query results to Access.
Export DB2 Query Results To Access – 4 Steps
Click Import – Import From Query button.
1. Show “Import Form Query” Form, input query, click “Get Fields” button.
2. Config target table and “Save Type”.
3. Config Fields.
4. Click Import button, Show export progress.
More about DB2ToAccess – the tool to export DB2 query to Access.
DB2 → Access reference
Type mapping
| Value kind | in DB2 | in Access |
|---|---|---|
| Int | INTEGER | Long Integer |
| Bigint | BIGINT | Long Integer |
| Decimal | DECIMAL(p,s) | Decimal |
| Float | DOUBLE | Double |
| Text | VARCHAR(n) | Text(n) |
| Long text | CLOB | Long Text |
| Date | DATE | Date/Time |
| Datetime | TIMESTAMP | Date/Time |
| Binary | BLOB | OLE Object |
| Boolean | SMALLINT | Yes/No |
Dialect differences
Both DB2 and Access are database servers, so the differences below are dialect-level: the same concept is spelled differently on each side.
| Property | in DB2 | in Access |
|---|---|---|
| port | 50000 | (file-based) |
| identifiers | "double quotes" | [square brackets] |
| row limit | FETCH FIRST n ROWS | SELECT TOP n |
| dates | DATE, TIME, TIMESTAMP | Date/Time |
| long text | CLOB | MEMO |
| binary | BLOB | OLE Object |
Command line
| Side | Command |
|---|---|
| DB2 | EXPORT TO out.csv OF DEL |
| DB2 (load) | db2 IMPORT FROM file OF DEL |
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.