File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes about jdbc connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "about jdbc connection" Watch "about jdbc connection" New topic

about jdbc connection

venkat suresh

Joined: Mar 23, 2006
Posts: 1
I am new to jdbc, how to connect with either SQL or oracle. Plz give me details of clearly...
Masoud Kalali
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

there are alot of sample in the web .
but as an example here :

take a look at this code :

this will connect to mysql
the rule are the same for sql server and oracle .just driver and url will be different.
the above class is almost a complete class for jdbc connection management.

for more information look at :

Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
I agree. Here's the link:
subject: about jdbc connection
It's not a secret anymore!