Is the syntax of the url for getConnection() method in jdbc correct?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpuser123
    New Member
    • Dec 2009
    • 108

    Is the syntax of the url for getConnection() method in jdbc correct?

    I am using Microsoft Access as datasource to connect to java and I hava a database called test.mdb..
    I want to connect to this db using java ..

    I am having problem to form the url of this database to pass as parameter in the DriverManager.g etConnection(ur l) method..

    Here 's what I've done:

    url="jdbc:odbc: test.mdb";
    DriverManager(u rl);

    IOs the url ok?
Working...