Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / April 2006

Tip: Looking for answers? Try searching our database.

MSAccess without ODBC

Thread view: 
timasmith@hotmail.com - 26 Apr 2006 11:52 GMT
I vaguely recall a JDBC-ODBC bridge or something.  Anyone know if I can
supply a MS Access database and a Java Driver which accesses it
directlly without a need for ODBC data source to be created?

thanks

Tim
Bjorn Abelli - 26 Apr 2006 13:36 GMT
<timasmith@hotmail.com> wrote...

> I vaguely recall a JDBC-ODBC bridge or something.
> Anyone know if I can supply a MS Access database and
> a Java Driver which accesses it directlly without a
> need for ODBC data source to be created?

You can always use the one Sun provided in the Java library.

  DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());

You don't have to create a dsn on the machine in order to use an ODBC
driver:

 String url =
    "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=mydb.mdb";

 Connection connection =
    DriverManager.getConnection (url);

// Bjorn A
webmaster.hxtt@gmail.com - 26 Apr 2006 16:55 GMT
Or use HXTT Access(http://www.hxtt.com/access.html), a commerical type
4 pure Java JDBC driver for MS Access.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.