package jsp; import java.sql.*; // JDBC package public class sql_data { String url = "jdbc:inetdae:192.168.2.70?sql7=true"; // use your hostname and port number String login = "sa"; // use your login here String password =""; // use your password here public Connection connection = null; public Statement st = null; public ResultSet rs = null; public sql_data(){ try { Class.forName("com.inet.tds.TdsDriver").newInstance(); DriverManager.setLoginTimeout(10); } catch(Exception e) { e.printStackTrace(); } }