-
MS Access Database Connection
Hi all!
im new when it comes to JAVA so i would appreciate any help with my connection code. Note that my ODBC is called "scoreboard".
At the moment i hav:
public final class Main
{
public static void main(final String[] args)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc dbc:scoreboard";
Connection conn = DriverManager.getConnection(url);
}
catch (Exception e)
{
System.err.println("Got an exception! ");
System.err.println(e.getMessage());
}
}
Im sure somebody will be able to point me in the right direction as i imagine its not difficult. Although ive been researching on the net and pretty much everywhere includes this code in some shape or form. Im wondering if its to do with using Sun's bridge driver with MS Access although thats just a guess.
GavW
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks