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

Environment: Winsows2008 x64 + .Net4.0

Using a IDataReader to read a CSV file.

Error Message

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

Solution

Change the application Platform target from Any CPU to x86 and the app work fine again.

image

Guess

Maybe the x64 ODBC driver is not available in the x64 machine or it never exist at all. But you can enjoy the csv again now.

你可能感兴趣的:(Microsoft)