Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Josh Forrest

Greenhorn
+ Follow
since Oct 08, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Josh Forrest

i have the DSN set up, i'm concerned that this part of my code is incorrect...
conn = DriverManager.getConnection("jdbc.odbc:josh");
i'm not sure if i should use the DB name(josh) here, or if i should insert something else there?
this is what i have...
Connection conn = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection("jdbc.odbc:josh");
System.out.println("connection = " + conn);
---------------------------
conn comes back null, i'm not sure if this part of my code is correct...
("jdbc.odbc:josh");
where josh is the name of my Access database.
thanks for any help!
would i place the directory path in the url string? for example...
String url = "jdbc.odbc:josh\AccessDB\Josh.mdb";
conn = DriverManager.getConnection(url);
thanks for you help!
how do i connect to MS Access 2000. my database name is Josh.mdb.
thanks for any help.
can i pass in parameters to the main class?
19 years ago
i would like to take a binary value and print out it's decimal representation. thanks.
19 years ago
how do i declare an int in binary format?
19 years ago