title: check sql database connection in java
body: <p>I am using sql server 2008. I need to check if I can establish connection using server name,port number,db name,user name and password.</p>
  
  <p>Is there any simple method available?</p>