The Artima Developer Community
Sponsored Link

Java Answers Forum
JDBC-ODBC Bridge Driver

1 reply on 1 page. Most recent reply: Feb 3, 2003 3:46 PM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Branko

Posts: 9
Nickname: orbusian
Registered: Feb, 2003

JDBC-ODBC Bridge Driver Posted: Feb 3, 2003 3:22 PM
Reply to this message Reply
Advertisement
When I try to load the JDBC-ODBC Bridge Driver using
this code line:

Class.forName(sun.jdbc.odbc.JdbcOdbcDriver) ;

I get message " No default driver specified".

so I can't get connected with the database.

I have installed J2SE version 1.4.1 and by the documentation this driver is provided with it.

Where is this class located?
Where is this package sun.jdbc.odbc?
I tryed to look for it in the "src.zip", but there is no
trace of it.
What is wrong?


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: JDBC-ODBC Bridge Driver Posted: Feb 3, 2003 3:46 PM
Reply to this message Reply
Your just need to add quotes.

Your line should look like:

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();


There is a jdbc demo program at:
http://www.quantumhyperspace.com/SourceBank/ExecuteSQL.java

Flat View: This topic has 1 reply on 1 page
Topic: GetDate function Previous Topic   Next Topic Topic: coding error-can nay one help me

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use