miraclezco
IS-IT--Management
how do i create a new Connection, Statement, and new ResultSet object to connect to the database Microsoft SQL Server?
//create a Connection, Statement, and ResultSet object to connect to the database
Connection con = new Connection();
ResultSet rs = new Resultset();
CallableStatement st;
String DocDesc="";
String DocType="";
int count=0;
.......
i typed in these and it gives me an error which says
Connection con = new Connection(); -->JavaCompile: Cannot instantiate java.sql.Connection.
ResultSet rs = new Resultset(); --> JavaCompile: Resultset cannot be resolved or is not a type.
How do i debug this error?
I need reply asap
//create a Connection, Statement, and ResultSet object to connect to the database
Connection con = new Connection();
ResultSet rs = new Resultset();
CallableStatement st;
String DocDesc="";
String DocType="";
int count=0;
.......
i typed in these and it gives me an error which says
Connection con = new Connection(); -->JavaCompile: Cannot instantiate java.sql.Connection.
ResultSet rs = new Resultset(); --> JavaCompile: Resultset cannot be resolved or is not a type.
How do i debug this error?
I need reply asap