Подключение к базе данных через JDBC
try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String url = "jdbc:odbc:mydatabase"; Connection connection = DriverManager.getConnection( url, "login", "password"); } catch (ClassNotFoundException e) { } catch (SQLException e) { }