If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

The precise way to do it varies slightly between different versions of Excel, and different client packages of DB2. You gave no details of either. Depending on which verison of Excel, some default installations on older versions of Office do not include MS Query, but modern 2010 Office versions do include it. Otherwise you might need to install additional components of MS Office.

After your ODBC data source is catalogued, then use odbcad32 GUI to tell Windows about it. In other words you use odbcad32 to add either a 'System DSN' for your db2 database, or a 'User DSN'. With this tool you can also test that the ODBC connection is working correctly ('Test Connection').

Finally, depending on your version of Excel, you can access 'external data'. Example in Excel-2010: Data-->From Other Sources-->From Microsoft Query. In the 'Choose Data Source' window, you should see your already catalogued System-DSN (from the previous step made by odbcad32), so choose that one then navigate from there...