Error Message:Unable to access the 'T' database because no online secondary replicas are enabled for read-only access. Check the availability group configuration to verify that at least one secondary replica is configured for read-only access. Wait for an enabled
replica to come online, and retry your read-only operation. Changed database context to 'T'.
I have 2 sql servers running in an AG group. SQL 2 is fully syncd and is used for read only reporting.
The connection from the listener using ReadOnly works and connects to SQL 2. The problem is, when a database in SQL 2 is suspended from the AG group, the listener does not connect to the SQL 1 (primary).
The AG group is setup exactly like this:
centinosystems.com/blog/wp-content/uploads/2015/01/Screen-Shot-2015-01-25-at-12.19.45-PM.png
Readable Secondary = Yes for both SQL 1 and 2, Availability Mode = Synchronous
Does anybody know why the listener does not connect to primary server?