first you must register a driver. this can be done this way:
DriverManager.registerDriver((Driver)Class.forName( <driverpath> ).newInstance())
where <driverpath> is a
string with the path to the driverclass on your system.
Then you can use one of the DriverManager.getConnection methods to get a connection.
possible structure:
Connection conn
conn = DriverManager.getConnection( <url> , <username>, <password > )
the three arguments to getConnection are strings.
link to the DriverManager class in the
java 1.3 api :
http://java.sun.com/j2se/1.3/docs/api/java/sql/DriverManager.html if you can't figure out the format for the url to use, check out the documentation for the database you are trying to connect to.
hope it helps!
[ Edited by Dave to remove smilies ]
[ May 30, 2002: Message edited by: David O'Meara ]