
How can i connect the database with my application without specifying the dsn name by using jdbc & odbc..... i have saw this code on the web-site
try
{
Driver d=(Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
c=DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver(*.mdb)};DBQ=E:/Final Project/Lalit.mdb");
st=c.createStatement();
} catch(Exception e){e.printStackTrace();
}
but this is not working. can i do it.