![]() |
VOOZH | about |
The CData Excel Add-In for DB2 enables you to edit and save DB2 data directly from Excel. This article explains how to transfer data from Excel to DB2. This technique is useful if you want to work on DB2 data in Excel and update changes, or if you have a whole spreadsheet you want to import into DB2. In this example, you will use the Orders table; however, the same process will work for any table that can be retrieved by the CData Excel Add-In.
If you have not already done so, create a new DB2 connection by clicking From DB2 on the ribbon.
Set the following properties to connect to DB2:
You will also need to install the corresponding DB2 driver:
On Windows, installing the IBM Data Server Provider is sufficient, as the installation registers it in the machine.config.
In the Java version, place the IBM Data Server Driver JAR in the www\WEB-INF\lib\ folder for this application.
To insert data into DB2, you will first need to retrieve data from the DB2 table you want to add to. This links the Excel spreadsheet to the DB2 table selected: After you retrieve data, any changes you make to the data are highlighted in red.
After retrieving data, you can add data from an existing spreadsheet in Excel.
As each row is inserted, the Id value will appear in the Id column and the row's text will change to black, indicating that the record has been inserted.
👁 The changes applied. (QuickBooks is shown.)Download a free trial of the Excel Add-In for IBM DB2 to get started:
Download NowLearn more:
👁 IBM DB2 IconThe IBM DB2 Excel Add-In is a powerful tool that allows you to connect with live IBM DB2 data, directly from Microsoft Excel.
Use Excel to read, write, and update IBM DB2 Database data. Perfect for mass imports / exports / updates, data cleansing & de-duplication, Excel based data analysis, and more!