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 = "jdbcdbc:myDB";
// Create a connection through the DriverManager
Connection databaseConnection =
DriverManager.getConnection(sourceURL);
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 = "jdbcdbc:myDB";
// Create a connection through the DriverManager
Connection databaseConnection =
DriverManager.getConnection(sourceURL);