问题
how can i fix this error? ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.. it is occuring in a new project that i am doing... im using vb 2008 , MYSQL as my database and windows 8.1 as my OS
i read on forums that you just fix with the odbc administrator tool... i tried creating my DSN there but it still doesnt work... i tried opening an old project of mine it works fine.. but this new project keeps getting that error.. i need this to work so that i can do my crystal reports.. i've been trying to fix this error for a full day now and i cant fix it..
can someone help me? THANKS..
回答1:
its a 64 vs 32 bit issue. You are accessing a 32 bit odbc driver on a 64 bit system.
IF YOU OPEN c:\windows\system32\odbcad32.exe you will not see a driver there that is in c:\windows\syswow64\odbcad32.exe (or just the opposite)
Check the target platform of your application, and if that doesn't fix it, you might be able to sneak by just installing the correct driver ( 64 or 32 bit )
回答2:
After searching on the internet I found the solution for my .vb project:
- Open ODBC Data Sources (32-bit) (location: C:\Windows\syswow64\odbcad32.exe)
- Open tab System DNS
- Add -> Sybase ACE ODBC Driver -> Fill in Name (example: DSN_32), net work address (address and port, example: 192.168.1.1,4100) and database name -> Test connection ->OK
- From your application, update your connection string to use DSN=DSN_32 Example:
value="PWD=123456;DSN=DSN_32;UID=123456;SRVR=123456;DB=123456"
Hope this helps.
来源:https://stackoverflow.com/questions/21395492/error-im014-microsoftodbc-driver-manager-the-specified-dsn-contains-an-arc