Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create a new connection to the database from IBM Websphere Studio Site

Status
Not open for further replies.

miraclezco

IS-IT--Management
Jul 20, 2005
1
SG
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top