Originally Posted by nimesh Don't you need to open the connection?
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:DSN");