Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Java only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Java
Java Database programming
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
baygan
New Member
Join Date:
Feb 2007
Posts:
5
#1
Java Database programming
Feb 24 '07, 05:16 PM
Can u plz let me know how i should connect my program in java to store as well as retrieve records from ms access database???
Tks..
Ronald.
horace1
Recognized Expert
Top Contributor
Join Date:
Nov 2006
Posts:
1510
#2
Feb 24 '07, 06:23 PM
Originally posted by
baygan
Can u plz let me know how i should connect my program in java to store as well as retrieve records from ms access database???
Tks..
Ronald.
have a look at the Java JDBC tutorial
http://java.sun.com/docs/books/tutorial/jdbc/
Comment
Post
Cancel
r035198x
MVP
Join Date:
Sep 2006
Posts:
13225
#3
Feb 26 '07, 05:33 AM
Originally posted by
baygan
Can u plz let me know how i should connect my program in java to store as well as retrieve records from ms access database???
Tks..
Ronald.
That's very easy to do. Just read the tutorial and practice on your computer.
Comment
Post
Cancel
elsheh
New Member
Join Date:
Nov 2006
Posts:
29
#4
Mar 1 '07, 02:12 PM
here is how to do it:
you need to find out what are URL and Driver you need.
class DBCon {
public static Connection getConnection() throws Exception {
String Driver="XXXXXXX X";
String URL="YYYYYYYYYY YYYYYYYY";
Class.forName(D river);
Connection c = DriverManager.g etConnection(UR L);
return c;
}
}
Comment
Post
Cancel
r035198x
MVP
Join Date:
Sep 2006
Posts:
13225
#5
Mar 2 '07, 06:09 AM
Originally posted by
elsheh
here is how to do it:
you need to find out what are URL and Driver you need.
class DBCon {
public static Connection getConnection() throws Exception {
String Driver="XXXXXXX X";
String URL="YYYYYYYYYY YYYYYYYY";
Class.forName(D river);
Connection c = DriverManager.g etConnection(UR L);
return c;
}
}
Well, you forgot the code tags.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment