Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Server 2012 "Always On" "Listener" not working with named instance Expand / Collapse
Author
Message
Posted Wednesday, October 24, 2012 10:56 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, June 19, 2014 2:34 AM
Points: 4, Visits: 155
Hello,

I have setup "Always On" on named SQL Instances. I have setup the listener as well. I can not connect through listener if I don't use Listener DNS name followed by name of the instance in the Servername. I expect it to work without appending the name of the instance after the listener name. I have different instance names on different nodes, so I can't do automatic failover using the Listener.

In case of default instance I believe I wouldn't be having this issue. Does listener works only with default SQL Instances or am I missing something here ?

Thanks in advance,

Vikas
Post #1376770
Posted Thursday, October 25, 2012 4:04 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:50 AM
Points: 6,175, Visits: 13,319
The listener has no concept of instance names, its a connection route into the AlwaysOn availability group. What details are you using to connect via the listener?

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs"
Post #1376879
Posted Thursday, October 25, 2012 4:02 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, June 19, 2014 2:34 AM
Points: 4, Visits: 155
Hello,

Thanks for your reply.

Consider this scenario:

4 WSFC Nodes with each node having different instance names on them

NodeName SQLInstanceName
HANode1 DBS1
HANode2 DBS2
HANode3 DBS3
HANode4 DBS4

We then create a Availability group "AG1" on these nodes with a Listener name "AGListener" (Listener DNS Name).

Initially HANode1\DBS1 is the primary DB server and if we try to conncect to this DB server through just a Listener DNS name, we will not be able to connect (which I thought should work). We need to say AGListener\DBS1 in order to connect to the DB instance. If you failover your Primary to node HANode4, then in order to connect to the DB Server we need to use DB Server Name as AGListener\DBS4 in the connection string.

The whole idea of having a listener is not to change your DB Servername in the connection string and handle all the failovers seamlessly.

The workaround for this is to have same SQL Instance names on all the nodes participating in WSFC. If it's a default instance on all the nodes, then we don't have to worry about anything.

Cheers,

Vikas



Post #1377321
Posted Tuesday, March 5, 2013 11:55 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, July 19, 2014 2:23 AM
Points: 1, Visits: 105
I have configured a Listener (say AG_LITEN) with port 5152 using static IP on SQL 2012 named instances.

When i try to connect using Listener in SSMS it doesn't connect whereas when i pass the IP port number (which i have used to configure the Listener) along with Listener name (AG_LISTN,5152) it work like a charm. I tried doing manual fail over and the same connection string connect to the new primary node.

Give it a try.
Post #1427187
Posted Wednesday, August 7, 2013 2:28 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Saturday, July 19, 2014 5:02 AM
Points: 265, Visits: 843
The browser service wont help detect the listener port. You will have to specify that in the conn string.
Unless that 1433.
Post #1481715
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse