64 bit ODBC Exception

别来无恙 提交于 2019-11-30 13:46:56

问题


I am getting the following ODBC exception when I moved my development platform from Windows XP X86 to Windows 7 X64:

ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

What I'm sure it means is that the server it is connecting to is 32 bit, and the computer I'm running on is 64 bit and the ODBC driver in use is 64 bit.

The application I am writing is set to run in 32 bit mode because some of the third-party software that we employ is not 64 bit compatible.

I tried downloading a 32 bit driver and changing the DSN but it did not fix my issue. I still get the exception.

If anyone has any links for 32 bit SQL drivers, or any ideas on how I could fix this by changing the project around, I'm all ears.

Thanks in advance,

-Jrud-


回答1:


It sounds more that you've setup a 32-bit DSN using the 64-bit ODBC Administrator :

http://msdn.microsoft.com/en-us/library/ms712362(VS.85).aspx

Try using this ODBC Administrator instead :

c:\windows\sysWOW64\odbcad32.exe




回答2:


If you type ODBC from Start -> Search Programs box, it only lists 32bit ODBC administrator, not 64bit console. Microsoft hide 64bit administrator from search.



来源:https://stackoverflow.com/questions/1947634/64-bit-odbc-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!