Java with MS Access 2000 Database

B

Bossman

What are you failing with? Make sure you have your data source/DB setup via
control panel. The following pice of code shows how I connect to a ms access
database called myDB.
------------------
// Load the driver class
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

// Define the data source for the driver
String sourceURL = "jdbc:eek:dbc:myDB";

// Create a connection through the DriverManager
Connection databaseConnection =
DriverManager.getConnection(sourceURL);
 
Z

Zee

Hi All

I am trying to connect with MS Access database but faild. Please let me know
what are the alternatives, so that I can connect to an Access Database.

Thanks in Advance

Zee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top