This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes how to connect database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "how to connect database " Watch "how to connect database " New topic
Author

how to connect database

neeraj jadhav
Greenhorn

Joined: Apr 06, 2009
Posts: 2
i have created database using MS ACCESS 2007. i need to know how can i connect that database to my java program, so that i can fetch required data from the database and display it.

please give me step by step details of the process as i know absolutely nothing about database connectivity in java.


NJ
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3899
    
    9

You can get a good overview from Jdbc Tutorial to get started. It's that only the driver you should get to match your vendor. And we have a separate forum dedicated to JDBC related posts.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44563
    
  34
Moving to our databases forum.
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3749
    
  10

For Access, you need to use a JDBC-ODBC bridge. There's a number of examples on the web of this.

Can I recommend using real database software? I know its not relevant but many programmers find Access unusable as a real database system (flame bait I know).


[OCA 8 Book] [Blog]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to connect database
 
It's not a secret anymore!