• 0

JDBC Access Database


Question

        String dburl = "jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=C://LDMS.mdb";
        
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        Connection conn = DriverManager.getConnection(dburl);
        Statement stmt = conn.createStatement();

I'm using this to create a connection to a Local Database "C://LDMS.mdb" is there anyway to have a relative path? I have the same file in the same directory as the JSP but it still can't seem to see the file. Any help is appreciated.

Link to comment
https://www.neowin.net/forum/topic/275538-jdbc-access-database/
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.