Connect to an IBM DB2 database (Power Query)

Use Excel's Get & Transform (Power Query) experience to connect to an IBM DB2 database.

Warning: 

  • Before you can connect to an IBM DB2 database, you need the IBM DB2 Data Server Driver installed on your computer (minimum requirement is the IBM Data Server Driver Package (DS Driver)). Select the driver that matches your Power Query installation (32-bit or 64-bit).

  • There are known issues reported by IBM installing the IBM DB2 Data Server Driver on Windows 8. If you are using Windows 8 and want to connect to IBM DB2 using Power Query, you need to follow additional installation steps. Find more information about the IBM DB2 Data Server Driver on Windows 8..

Click on the Data tab, then Get Data > From Database > From IBM DB2 Database. If you don't see the Get Data button, then click New Query > From Database > From IBM DB2 Database.

In the Power Query ribbon tab, click From Database > From IBM DB2 Database.

Power Query From Database options

Next

  1. In the IBM DB2 Database dialog box, in Server Name specify the IBM DB2 Database Server to connect to.

  2. If you want to import data using native database query, specify your query in the SQL Statement box. For more information, see Import Data from Database using Native Database Query.

  3. Click OK.

  4. If the IBM DB2 server requires database user credentials:

    1. In the Access a Database dialog box, enter your username and password.

    2. Click Connect.

Need more help?

You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.

See Also

Get & Transform in Excel 2016

Import data from external data sources

Expand your skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×