SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Using multiple listeners in Basic AlwaysOn Availability Groups


Using multiple listeners in Basic AlwaysOn Availability Groups

Author
Message
navtec
navtec
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2660 Visits: 328
Hi,

I want to set up several Basic Availability Groups in Standard Edition of SQL Server 2016.

Each of the availability groups will have its own listener.

How is the application able to connect to several listeners at the same time? Is it possible to alter the application connection string with details of more than one listener?
So can I add the listener connection details for several listeners in the same connection string? Or would I need to create one connection string per listener?

Just trying to figure out how this would work.

Thanks.
Alexander Zhang
Alexander Zhang
SSC Eights!
SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)SSC Eights! (975 reputation)

Group: General Forum Members
Points: 975 Visits: 262
navtec - Wednesday, March 7, 2018 1:51 PM
Hi,

I want to set up several Basic Availability Groups in Standard Edition of SQL Server 2016.

Each of the availability groups will have its own listener.

How is the application able to connect to several listeners at the same time? Is it possible to alter the application connection string with details of more than one listener?
So can I add the listener connection details for several listeners in the same connection string? Or would I need to create one connection string per listener?

Just trying to figure out how this would work.

Thanks.

It sounds sort of weird. AG Listener is more about instance. About your case, if all the AGs are absolutely the same role (Primary/Secondary), you just need create a single AGL and just connect to it. If some are primaries and others are secondaries, you do need multiple AGLs and multiple connection strings.


GASQL.com - Focus on Database and Cloud
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search