public Connection getConnection() throws SQLException, NamingException {
    String sDBDriver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    String sConnStr =
        "jdbc:microsoft:sqlserver://10.4.5.29:1433;databaseName=mis";
    String sUserName = "mis";
    String sPassword = "mis";
    try {
      Class.forName(sDBDriver);
    }
    catch (java.lang.ClassNotFoundException e) {
      System.err.println("Get Connection Error: " + e.getMessage());
    }
    return DriverManager.getConnection(sConnStr, sUserName, sPassword);
  }