Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9171885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:13:27+00:00 2026-06-17T16:13:27+00:00

I am trying to make connection in jdbc with MS Access. The connection is

  • 0

I am trying to make connection in jdbc with MS Access. The connection is being established successfully but it’s not taking the password in the connection string. I am using the following code.

try 
 {
  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  String connquery="jdbc:odbc:Driver={Microsoft Access Driver(*.mdb)};
  DBQ=d:/newfolder/db11.mdb";

  Connection c=DriverManager.getConnection(connquery,"","securityserver");
  Statement st=c.createStatement();
 }
 catch(Exception ex)

 {
 ex.printStackTrace();

 }

This connection is working properly without password but after applying the password it’s throwing an exception.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:13:27+00:00Added an answer on June 17, 2026 at 4:13 pm

    You’ve been at this for days. Honestly, it’s not that hard to connect to a relational database using Java.

    I don’t know what the deal is with Microsoft Access. I’ve used it before on small problems with minor success, but I wouldn’t recommend it now that there are so many other alternatives available.

    MySQL or PostgreSQL are probably beyond you, but I’d say you’ll have better luck with the Derby database that’s built into the JDK.

    The JDBC-ODBC driver is a problem; it’s not available if you’re on a 64 bit OS. Access is for individual use; I wouldn’t trust it for shared access. You’re having problems with passwords; others won’t be so reluctant to accept a password.

    Change your database if you can and see if that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to make a small countdown timer in my app but it's not working.
I am trying to make the connection between java and ms access database. I
I am trying to make connections to my database using connection pooling library: DBPool
I'm trying to make a SpringMVC + JDBC boilerplate that works.. when I access
I'm trying to make a connection pool following this link: http://192.9.162.55/developer/onlineTraining/Programming/JDCBook/conpool.html I don't understand
Iam trying to make a connection between my database on the MYSQL(iam using the
I'm trying to make a Java connection with SQL Server, but I'm facing some
I was trying to make the connection between python string and C character array
I am trying to make connection using NSURLConnection with my server. I have implemented
I am trying to make connection with remote system in the network using C#.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.