File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to load the class while Using 4 th Jdbc Driver

 
sirisha makkapati
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any one please tell me What URL We need to specify while loading the 4 th Driver

For First We will Load Like this Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Conncetion con=DriverManager.getConnection("jdbc dbc ataSourcename","UserId","Password");

For 4 th Driver class.forName("URL1");
Conncetion con=DriverManager.getConnection("URL2");


what is URL1,URL2 Here for 4 th Driver

Advanced thanks ..
 
Ajay Singh
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it depends on the database. For instance in case of mysql it would be

jdbc:mysql://[server host]/database
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic