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 / General / October 2007

Tip: Looking for answers? Try searching our database.

DriverID in JDBC-ODBC bridge

Thread view: 
Grzesiek - 21 Oct 2007 19:48 GMT
Hi ,

I can access MS Access database using the folowing code:

           Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
           String filename = "d:/dataBase.mdb";
           String database = "jdbc:odbc:Driver={Microsoft Access
Driver (*.mdb)};DBQ=";
           database+= filename.trim() +
";DriverID=22;READONLY=true}";
           Connection con =
DriverManager.getConnection( database ,"","");

and it works fine. But i have a question. What DriverID stands for?
Why you write DriverID=22. Are there possible other values of
DriverID?

Thanx in advance

:-)
Lew - 21 Oct 2007 23:17 GMT
> I can access MS Access database using the folowing code:
>
[quoted text clipped - 10 lines]
> Why you write DriverID=22. Are there possible other values of
> DriverID?

Responding from comp.lang.java.programmer:
You know you already asked this question and got answers over on
comp.lang.java.databases, right?

Please don't multipost.  You can cross-post, as I did here, to unify the
threads across groups, but you really should set followup to just one group in
that case.

Signature

Lew



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.