File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes java database connectivity... 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 "java database connectivity..." Watch "java database connectivity..." New topic

java database connectivity...

sanju gajera

Joined: Sep 24, 2006
Posts: 17
hi!!! this is sanjay gajera
i want to know that how to connect the java applicaation to the database ....Access...please tell me this solution with exampale of small database ACCESS based soon as possible.....

gajera sanjay
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60046

Please read this.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Milankumar Desai

Joined: Sep 25, 2007
Posts: 11
public void getConnection() {
try {
java.sql.Connection con = null;

System.out.println("sun.jdbc.odbc.JdbcOdbcDriver found");
con = DriverManager.getConnection("jdbcdbc:CtsEmployee", "", "");
} catch (Exception cnfe) {
System.out.println("Error: sun.jdbc.odbc.JdbcOdbcDriver not found");

This is some snippet of code for access connection where CtsEmployee is some dataourse
It is sorta covered in the JavaRanch Style Guide.
subject: java database connectivity...
Similar Threads
Applet-Database communication
java.sql.Date problem
Accessing Database
java general question(transaction realted)