File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Joined: May 22, 2007
May 23, 2007 00:05:00
how get connection to database.
Joined: Mar 06, 2001
May 23, 2007 00:49:00
Joined: Apr 20, 2006
May 23, 2007 00:50:00
Use either of them
- Class in java.sql package
- Interface in javax.sql package
Both of them have a method called getConnection().
has it as a static method whereas
's is an instance method. getConnection() gives you a
Also make sure of the
Driver Type as well. Depends on that you need to pass the Connection URL.
You can go through these links
JDBC Tutorial from Sun
JDBC articles in Sun
[ May 23, 2007: Message edited by: Raghavan Muthu ]
Everything has got its own deadline including one's EGO!
Java Beginners FAQ
Java Coding Guidelines
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013