This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java database connectivity..." Watch "java database connectivity..." New topic
Author

java database connectivity...

sanju gajera
Greenhorn

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 application...as soon as possible.....
thanks....


gajera sanjay
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

Please read this.


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

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

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java database connectivity...
 
Similar Threads
java.sql.Date problem
Applet
Applet-Database communication
Accessing Database
java general question(transaction realted)