Thread: new to JDBC
View Single Post
  #2 (permalink)  
Old 05-01-2008, 09:54 AM
sanjeevtarar's Avatar
sanjeevtarar sanjeevtarar is offline
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
Hello,

what have you done and what errors are your getting.


Try this code.

Code:
try{ Class.forName(driver); conn = DriverManager.getConnection(url,uid,pass); stmt = conn.createStatement(); } catch(ClassNotFoundException ce) { System.out.println("ERROR:"+ce.getMessage()); } catch(SQLException se) { System.out.println("ERROR:"+se.getMessage()); } }
__________________
sanjeev,संजीव
Reply With Quote