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

Connect to secondary replica from SSMS

$
0
0

Hi,

I have a HA Always On set up with 2 nodes. I am looking for a possibility :) to connect to secondary read-only replica from SSMS. I read several articles that says set ApplicationIntent=ReadOnly in advanced options, which I already did. Every time when I connect to listener, I end up in connecting to primary server. I created a sql user 'test', I set deny connect in primary, then I connect with this user login to secondary as this user is active[grant status] in secondary. I am getting login failed error. I am new to HA Always On. So wanted to check if this is the expected behavior, if not how can I make my scenario working. Also, when I use ApplicationIntent=ReadOnly in SSMS and connect to AG listener, will the @@servername show secondary replica server name?

Thanks in advance for any help or suggestions!!!


Viewing all articles
Browse latest Browse all 4689

Trending Articles



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