How do I connect to a MS Access (32 bit) database using JDBC on the Eclipse platform?
-
I created a database ("Flights.mdb", but that doesn't matter. I can always save it in .accdb format) using Microsoft Access 32-bit. Now I want to access it using Java. Most answers I found online told me to use the odbcad32.exe driver in c:\Computer\sysWOW64 to create a DSN, but When I tried doing it using that method, I got the following error: Connect error: java.sql.SQLException: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application So obviously, there's a 32-bit and 64-bit architecture mismatch somewhere. Can someone please help me figure out where?
-
Answer:
you have to connect through jdbc odbc bridge your ODBC DNS should be 64 bit if you are on 64 bit system.
Chandan Sharma at Quora Visit the source
Related Q & A:
- How can I communicate Raspberry Pi and Arduino (in both ways) using a 10-15m distance wires?Best solution by Arduino
- How do I connect to SQL Server using C#?Best solution by Stack Overflow
- How do I connect to a SQL Server database?Best solution by Stack Overflow
- How Can I Connect To The Internet On My Psp Using A USB Cable?Best solution by askdavetaylor.com
- How can I connect my non-HD DirecTv receiver to my hdtv using an hdmi cable?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.