Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Dale Matthews   on Sep 02 In Java Category.

  
Question Answered By: Zoar Mizrachi   on Sep 02

If you wanna using jdbc  you should first install maxdb driver  for windows
and then using jdbc:odbc to connect  to it :


try {
Connection connection = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

String serverName = "localhost";
String portNumber = "1521";
String sid = "orcl";
String url = "jdbc:odbc:orcl";
String username = "kunal";
String password = "kunal";
connection = DriverManager.getConnection(url, username, password);
} catch(SQLException se) {
se.printStackTrace();
}

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on MAXDB Or get search suggestion and latest updates.


Tagged: