Note that there are some explanatory texts on larger screens.

plurals
  1. POConnecting to a SQL Server 2012 AlwaysOn Group Listener with MultiSubnetFailover results in a Timeout
    primarykey
    data
    text
    <p>We're having a strange issue where our developers are not able to connect to the AlwaysOn Availability Group Listener when MultiSubnetFailover is set to true. However, the clients can connect when attempting to connect directly to the primary node of the group. We've reproduced this with the minimum test cast below on windows 8 using .Net 4.0.3 as well as windows 7 using .Net 4.0.3. and .Net 4.5.</p> <p>We've also successfully had our staging servers connect over the group Listener, as well as using sqlcmd and SMS to connect to the vip using the MultiSubnetFailover flag. So it'd appear that the listener itself is correctly configured.</p> <p>Here is the results of a nslookup on the Listener's name as well. As far as I can find online we've done everything properly but the connection still times out. Any help anyone can provide is greatly appreciated.</p> <p><strong>Update:</strong></p> <p>By process of elimination this seems to be related in some fashion to having Visual Studio installed on the developers machines.</p> <p><strong>NSLookup:</strong></p> <pre><code>Non-authoritative answer: Name: sql02 Address: 10.101.2.222 Name: sql02 Address: 10.101.1.222 Name: sql02 Address: 10.101.0.222 </code></pre> <p><strong>Minimum Test Case:</strong></p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; namespace ConsoleApplication1 {    class Program    {        static void Main(string[] args)        {            var connection = new SqlConnection(@"                                    Data Source              = sql02;                Initial Catalog          = test;                Integrated Security      = True;                MultiSubnetFailover      = True;                MultipleActiveResultSets = True;                Max Pool Size            = 512;");            connection.Open();        }    } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload