aspose file tools*
The moose likes JDBC and the fly likes Beginning With Databases Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Beginning With Databases" Watch "Beginning With Databases" New topic
Author

Beginning With Databases

Landon Blake
Ranch Hand

Joined: Dec 04, 2003
Posts: 121
I would like to write a simple program that stores information in a database. Most references on Java Databases refer to "connecting" to a database. I imagine this database already exists and was perhaps created by another program altogether. Where do I start if I want to use a database in my program? What's the simplest technique to store data for use by by program in a database?
Thanks for any suggestions,
Landon
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Look into the Sun JDBC Tutorial. This is the Java way to connect to databases. It's pretty sane, and ought to be good fun to pick up.
You can give JDBC a try using MS-Access as a database if you're on Windows (look for JDBC-ODBC) or any number of free databases or free-trial-version databases. Each database requires slightly different code to connect. Most will come with some Java samples that you can study and copy.
Ranch suggestions for an ---easy to set up--- starter database?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
You also might want to take a look at the JDBC assignments of the JavaRanch Cattle Drive for an easy introduction to the subject.
Moving this to the JDBC forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Beginning With Databases
 
Similar Threads
ditributed database
Database Daemon Connection
Beginning With Databases
J2EE & PL/SQL
query to find database..