connecting to a database on my c: drive

How can I connect to a database that is stored on my local hard drive? I am using the java.sql package as in the following example:

[code]Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection ("jdbc:odbc://localhost/????", username, password);
st = con.createStatement();[/code]

What should go where the question marks are (if indeed this is the right approach at all)?
Thanks in advance,
Dan :-)


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion