Excel ODBC and 64 bit server

Ris Adams picture Ris Adams · Dec 8, 2008 · Viewed 66k times · Source

using ASP.NET I need to update an excel template.

Our server is running Windows 2008 in 64 bit mode.

I am using the following code to access the excel file:

    ...
    string connection = 
@"Provider=MSDASQL;Driver={Microsoft Excel Driver (*.xls)};DBQ=" + path + ";";
    ...

IF the application pool is set to Enable 32 bit applications the code works as expected; however the oracle driver I am using fails as it is only 64 bit.

If Enable 32-bit applications is set to false the excel code fails with the error:

Data source name not found and no default driver specified

Any suggestions?

Answer

Matthew Skelton picture Matthew Skelton · May 11, 2010

The Microsoft Office team has just released a 64-bit driver