Error:
Msg 976, Level 14, State 1, Line 1
The target database, ‘xxxxx’, is participating in an availability group and is currently not accessible for queries. Either data movement is suspended or the availability replica is not enabled for read access. To allow read-only access to this and other databases in the availability group, enable read access to one or more secondary availability replicas in the group. For more information, see the ALTER AVAILABILITY GROUP statement in SQL Server Books Online.
Fix:
Check AlwaysOn Properties and make sure the secondary database is set to “Readable Secondary=Yes” if the secondary is intended as a reporting server and not on stand by server.
Comments