How to set instance name with jdbc
<p>I am trying to connect a MS SQL server with jdbc driver. I am getting below error;</p>

<pre><code>Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall
</code></pre>

<p>I think there is a problem with my connection URL. Here is my connection URL;</p>

<pre><code>jdbc:sqlserver://50.50.50.50\MYINSTANCE:1433;
</code></pre>

<p>EDIT: I can connect this sql server with some client application(HeidiSQL) without any problem.</p>

<pre><code>Network type: Microsoft SQL server (tcp/ip)
Hostname:50.50.50.50\MYINSTANCE
Port: 1433
username:...
password:...
</code></pre>

<p>Below line throws exception and I can connect some other sql server's without any problem.(They don't have any instance name)</p>

<pre><code>DriverManager.getConnection(connectionUrl, username, password);
</code></pre>