Reputation: 668
How do I connect to a 64 bit system DSN from a 32 bit application? I get the error: ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application
OdbcConnection con = new OdbcConnection();
con.ConnectionString = string.Format("DSN={0}", _dsnName);
I've seen lots of posts where people use 64 bit to connect to 32 is there a way to go from 32 to 64 without redefining your ODBC Connection using the 32 bit app? c:\windows\syswow64\odbcad32.exe
Upvotes: 4
Views: 2281
Reputation: 4530
A 'prefer32bit' exe, calling a 64bit dll. Solutions:
Upvotes: 1