Win7 64-bit Database Connectivity issue: The architecture mismatch between the driver and the application in the specified DSN

Source: Internet
Author: User
Tags dsn

The workaround for "the architecture mismatch between the driver and the application in the specified DSN" is an exception when connecting programs and databases via ODBC/JDBC

Native : 64-bit win7,64-bit JDK, 32-bit myeclipse for web experiments after a problem with either Access or SQL Server connection database, I finally understand why the Java experiment did not connect to the Access database but SQL Server is no problem, now the perfect solution, haha!

Reason:

The 64-bit Win7 OS ODBC version defaults to 64-bit (SQL Server data source is also 64-bit) and requires 64-bit JDK and 64-bit Office (access). Use myeclipse should also correspond to 64-bit MyEclipse version

For 32-bit myeclipse, the database should be connected to a 32-bit ODBC data source (32-bit established SQL Server data source)

Workaround:X:\Windows\SysWOW64\odbcad32.exeFor example:Go to the C:/windows/syswow64 folder, open the Odbcad.exe, and open the 32-bit version of ODBCUse this to create a system DSN for ODBC to connect to SQL Server or Access, the access suffix should be MDB Note that the JDK path should be set to the same path as the 32-bit JDK, and the 32-bit version should be used with MyEclipse MyEclipseNote: The 64-bit version of the location: C:\windows\system32\odbcad32.exe32-bit version of the location: C:\windows\sysWOW64\odbcad32.exe
Once the database is set up and running successfully, the JDK is changed back to 64 bits as if it had no effect on the database.

Win7 64-bit Database Connectivity issue: The architecture mismatch between the driver and the application in the specified DSN

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.