title: How to set connection timeout while creating JDBC SQL Driver connection(JAVA)?
body: <p>It it is taking 60 minutes for a connection to establish. How do I resolve?</p>
  
  <p>Tried</p>
  
  <pre><code>Connection conn = DriverManager.getConnection("jdbc:sqlserver://" + host + ":" + port + ";databaseName=" + database
                      + ";", uname, passwd+ "");
  </code></pre>
  
  <p>Thanks </p>