Search Suggest

database replica is not in the PRIMARY or SECONDARY role
database replica is not in the PRIMARY or SECONDARY role

Unable to access availability database 'XXXX' because the database replica is not in the PRIMARY or SECONDARY role.

Issue:- Sometime issue comes like, when you try to access a database in AlwaysOn it gives error like "Unable to access availability database …