connecting to a database on my c: drive - Programmers Heaven

Howdy, Stranger!

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

Categories

connecting to a database on my c: drive

zeolitezeolite Posts: 78Member
Hi,
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 :-)

Comments

Sign In or Register to comment.