Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

AlwaysOn Listener Connects to Whole Instance, Not Just Availability Databases

$
0
0

I haven't been able to find any answers to the problem I'm experiencing, and I'm at wits end trying to figure it out.

We have a 3 SQL Server AlwaysOn setup, with each server having a default and named instance, and 3 availability groups across the 3 servers. We're using the default ports for all instances and SQL setups, and have 1 listener setup for each availability group using different ports (listener AG1 is using port 1440, AG2 is using 1441, AG3 is 1442). AG1 is configured to have 2 of 3 databases from the default instance, AG2 has the majority of databases from the named instance, and AG3 has the rest of the database from the named instance.

I can connect to each of the server instances using server name and instance name, and to each of the AG listeners with no problem.

My problem is, no matter what connection string I use to connect to the listener in SSMS/ODBC/etc (with and without port specified),I'm shown all databases in the instance rather than just those assigned to the AG listener! It's like the listener is matched up with a server (AG1 with server1, AG2 with server2, and AG3 with server3), and when AG2 fails and server3 becomes the primary, connecting to listener AG2 connects me to server2. All failover works fine, but none of my listeners connect like I expect them to!

I've confirmed the there are no entries in the server Hosts file, no SQL or system aliases configured, and no other DNS entries that would confuse the Listener IP address or name with the Host server IP address or name. I've tried deleting the listeners and assigning fresh IP addresses, but the problem of showing all databases in the instance when connecting to the listener name persists.

I'm at a loss! Has anyone encountered this, or does anyone have any suggestions for what else to look for?


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>