title: JTDS driver - Cannot create PoolableConnectionFactory (I/O Error: DB server closed connection.)
body: <p>I am attempting to connect to an SQL database hosted in Azure from a piece of software I'm using on an Azure VM, using the JTDS JDBC Driver.</p>
  <p>This isn't software I have built/am developing, this is a third party program I am using to view my data. In the software I create data sources using JDBC drivers. The issue may be with the software I am using, but I wondered what other issues could cause this problem?</p>
  <p>I am using the following connection url:</p>
  <blockquote>
  <p>jdbc:jtds:sqlserver://[servername]:1433/[databasename];user=xxxxx;password=xxxxx</p>
  <p>driver: jtds-1.3.1.jar</p>
  <p>class:  net.sourceforge.jtds.jdbc.Driver</p>
  <p>Response: Could not connect to 'URLSTRING' with User Id 'xxxxx'. This probably means that the URL or login details are incorrect. The full error is: Cannot create PoolableConnectionFactory (I/O Error: DB server closed connection.) SQL Exception : null</p>
  </blockquote>
  <p>The database firewall is configured to allow the IP of my VM and I can <code>telnet</code> to the port fine.</p>
  <ul>
  <li>I have connected to this database, on this port, using the JDBC 4 driver from within this same software.</li>
  <li>The software suggests it's a username and password issue, and wrong credentials also throws the same error. I am wondering if I am passing the username and password wrong?</li>
  </ul>