import java.sql.*;
public class first{
public static void main(String[] args){
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc.odbc.MyDataSource","sa","");
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery("Select * from authors");
rs.beforeFirst();
while(rs.next()){
String id=rs.getString("au_id");
System.out.print(id);
}
rs.close();
}
catch(Exception e){
System.out.println(e);
}
}
}
Helo frnd In the above code it is throwing a exception that not sutable driver why ?
with regard
Arun
public class first{
public static void main(String[] args){
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc.odbc.MyDataSource","sa","");
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery("Select * from authors");
rs.beforeFirst();
while(rs.next()){
String id=rs.getString("au_id");
System.out.print(id);
}
rs.close();
}
catch(Exception e){
System.out.println(e);
}
}
}
Helo frnd In the above code it is throwing a exception that not sutable driver why ?
with regard
Arun