473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Java Database programming

5
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.
Feb 24 '07 #1
4 1174
horace1
1,510 Expert 1GB
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/
Feb 24 '07 #2
r035198x
13,262 8TB
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.
Feb 26 '07 #3
elsheh
29
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="XXXXXXXX";
String URL="YYYYYYYYYYYYYYYYYY";
Class.forName(Driver);
Connection c = DriverManager.getConnection(URL);


return c;

}
}
Mar 1 '07 #4
r035198x
13,262 8TB
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="XXXXXXXX";
String URL="YYYYYYYYYYYYYYYYYY";
Class.forName(Driver);
Connection c = DriverManager.getConnection(URL);


return c;

}
}
Well, you forgot the code tags.
Mar 2 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.