• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

type 4 jdbc driver

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
Is type4 jdbc driver available for Ms Acess?
I downloaded from here;
http://www.hxtt.com/access.html
What should i now do with this folder in order to run ms access in type 4 mode....There are example java files also given there.
 
Marshal
Posts: 26387
81
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Normally what you do with a JDBC driver is:

1. Put the driver's jar into your classpath.

2. Code the driver URL (in the part of your code where you connect to the database) according to whatever the driver's documentation says.

That's what you should do with this one, too. In case you didn't find it, the link which says "Document" in the left column leads to some documentation.

If you have specific questions about that process don't hesitate to post them here.
 
carox kaur
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thankyou.

The first two lines for jdbc connections are:
class.forName("........<string 1>.........");
Connection con=Driver manager.getConnection("........<string 2>...........");

All i know is that in the first statement: we load the vendor specific Driver class (which varies from vendor to vendor and type of driver to driver) that has the information of the connection class implemented by that database vendor.DriverManager class (implemented by Sun) takes the required information about the connection class from string1 to make the connection object in second line
and in 2nd statement: In string2 we are specifying the information of databse like the protocol used,dsn name etc...
Am I right ? is there any other explanation?
One thing I have not understood is how the Driver Manager class knows which driver class is already loaded in the memory? How it creates the connection class object?
 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AFAIK, there is no type4 jdbc driver for MS Access.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

James Ward wrote:AFAIK, there is no type4 jdbc driver for MS Access.


The link in the first post points to just such a driver.

Also, please DontWakeTheZombies.
 
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic