title: Hibernate connects to wrong database
body: <pre><code>    &lt;property name="hibernate.connection.driver_class"&gt;net.sourceforge.jtds.jdbc.Driver&lt;/property&gt;
      &lt;property name="hibernate.connection.url"&gt;jdbc:jtds:sqlserver://host/:port/db_name;instance=smth&lt;/property&gt;
      &lt;property name="hibernate.connection.username"&gt;XXX&lt;/property&gt;
      &lt;property name="hibernate.connection.password"&gt;YYY&lt;/property&gt;
      &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.SQLServerDialect&lt;/property&gt;
  </code></pre>
  
  <p>With this configuration, hibernate connects my program to "master" database instead of "db_name". How can i solve this problem?</p>
  
  <p>EDIT: jtds 1.2.5.</p>