Java Direct Access MDB database file for MS Access

Source: Internet
Author: User
Tags mdb database

JDBC accesses the MDB database file for access and uses a development package called Ucanaccess to implement this functionality.

"Supported Access formats:2000,2002/2003,2007,2010/2013 Databases (1997 read-only)."

Official website in http://ucanaccess.sourceforge.net/site.html

Now by the wall.

Use ucanaccess JDBC Driver:
Class.forName ("Net.ucanaccess.jdbc.UcanaccessDriver");
Connection conn=drivermanager.getconnection ("Jdbc:ucanaccess://<mdb or ACCDB file path>", user, password);
For example:
Connection conn=drivermanager.getconnection ("Jdbc:ucanaccess://c:/pippo.mdb");

MAVEN Coordination:

<dependency>
<groupId>net.sf.ucanaccess</groupId>
<artifactId>ucanaccess</artifactId>
<version>3.0.2</version>
</dependency>

Reference http://stackoverflow.com/questions/16626301/jdbc-driver-ms-access-connection

Java Direct Access MDB database file for MS Access

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.