Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

new to jdbc

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help me .I'm new to JDBC and want to do some work on it.I have downloaded JDK 1.1.8 .How can I use Access or Oracle as database?How can I get the driver connection.Please tell me some steps by which I can proceed for developing a table from which i can retrive the data .
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try:
http://java.sun.com/docs/books/tutorial/jdbc/index.html
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ramesh,
Here r the steps which is smae for any type of data base,but put it in a try catch block b'coz it gives up a xception.This one is for access data base.u first create a dns e in access and give it a name here it is "anand"

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("Driver registered for database...");
Connection con=DriverManager.getConnection"jdbc dbc:anand","username","password ");
System.out.println("Connection established with access...");
stm=con.createStatement();
Bye
Anand
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
The trailboss has a kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic