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

Application connecting to previous primary node after failover

$
0
0

Dear Experts,

I have a 2 node Always ON AG setup.

Application works fine when the Node1 is primary.

Whenever I failover the AG to Node2,application errors out stating cannot connect to Read-only database, by which I assume that the application is still trying to connect to the previous primary node Node1.

Application connection string is using listener IP:port .

Failover and failback happens without issues.

Any guidance is highly appreciable.

Thanks

Javeed


Javeed Ahmed


Viewing all articles
Browse latest Browse all 4689

Trending Articles



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