Here is Sun's JDBC tutorial:
http://java.sun.com/docs/books/tutorial/jdbc/index.html
Hi,
First decide which database u want to connect it?
Only the three steps:
1.If it is in the Oracle then..
String query="Select * from emp_table";
class.forName(" sun.jdbc.odbc.J dbcOdbcDriver") ;
Connection con=DriverManag er.getConnectio n("jdbc:odbc:<d atasourcename>" );
PreparedStateme nt ps=con.prepareS tatement(query) ;
ResultSet rs=ps.execute() ;
2.If it is for MsAcess then
the above steps are same only the driver and class.forName changes ..
now i forget it later i will send it.
Pls try the above coding and reply is must.If it is wrong Pls send the correct answer...
bye takecare!
by
ela