Error when refreshing data from external source in excel. Data source name not found and no default driver specified

2

I have an excel workbook which has an external data source to create a pivot table. This file was sent to me. I can open it up correctly, but when I try to refresh the data I get the following error:

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.

As far as I'm concerned, Windows should use the default ODBC driver (odbcad.exe) for the connection. Any idea what might be causing the error when refreshing the data?

EDIT: The connection string has DSN, UID, TRUSTED_CONNECTION, APP, WSID and DATABASE fields.

EDIT: I set up the ODBC connection, but now I'm getting the following error:

[ODBC Driver Manager] The Specified DSN contains an architecture mismatch between the Driver and Application

sazpaz

Posted 2012-10-10T18:54:58.577

Reputation: 187

Answers

3

Even thought the ODBC connection information is present in the Excel workbook, an ODBC connection must be established between your PC and the data source in order for the workbook to connect.

Not sure what OS you are using, but here is Using the ODBC Data Source Administrator for Windows 7.

If you do not know the information to setup the connection, contact your network administrator.

CharlieRB

Posted 2012-10-10T18:54:58.577

Reputation: 21 303

The ODBC is now connected but it's throwing another error when refreshing the data. It's on the original post. – sazpaz – 2012-10-10T19:56:01.570

It has to do with the use of 64 bit vs 32 bit drivers. If the data sources is 32 bit, you must use a 32 bit driver when you set up the local ODBC connection. Here is MSDN information on the additional error: Managing Data Sources

– CharlieRB – 2012-10-11T11:24:25.737