Professional Documents
Culture Documents
error
957
severi
ty
17
976
14
978
979
14
14
description
Database '%.*ls' is enabled
for database mirroring or
has joined an availability
group. The name of the
database cannot be
changed.
The target database,
'%.*ls', 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
The target database
('%.*ls') is in an availability
group and is currently
accessible for connections
when the application intent
is set to read only. For more
information about
application intent, see SQL
Server Books Online.
The target database
('%.*ls') is in an availability
group and currently does
not allow read only
connections. For more
If
dm_hadr_availability_replica_states.role_desc=3(INVALID)
, then check service broker. Because Availability group is
using Service Broker to communicate between SQL Server
then need to check Service Broker first. Open
SSMS>Server Objects > Endpoints, there are two
Service Broker folder>Expand both, and if the state is
Stopped or Disabled, then can change the state to
Started.
982
1408
1409
information about
application intent, see SQL
Server Books Online.
Unable to access the '%.*ls'
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
14 an enabled r
The remote copy of
database "%.*ls" is not
recovered far enough to
enable database mirroring
or to join it to the
availability group. You need
to apply missing log
records to the remote
database by restoring the
current log backups from
16 the principal/prim
16 Database "%.*ls" requires
database logs to be
restored either on the
future mirror database
before you can enable
database mirroring or on a
secondary availability
database before you can
join it to the availability
group. Restore current log
1465
16
1466
16
1467
1468
16
16
backups from
Database "%.*ls" database
is not in full recovery mode
on each of the server
instances. The full recovery
model is required for a
database to participate in
database mirroring or in an
availability group.
Database "%.*ls" is readonly on one of the server
instances which is
incompatible with
participating in database
mirroring or in an
availability group. Set the
database to read-write
mode, and retry the
operation.
Database "%.*ls" database
is in emergency or suspect
mode on one of the
partners which is
incompatible with
participating in database
mirroring or in an
availability group.
The operation cannot be
performed on database
"%.*ls" because it is
involved in a database
mirroring session or an
1469
16
1480
10
1488
1833
16
16
3104
an availability group, a
dropped file can be reused
only after the truncation
LSN of the primary
availability replica has
passed the drop LSN of the
RESTORE cannot operate
on database '%ls' because
it is configured for
database mirroring or has
joined an availability group.
If you intend to restore the
database, use ALTER
DATABASE to remove
mirroring or to remove the
database from its
16 availability gro
3752
5529
10786
13251
16
10
19401
19403
16
16
file operation.
The ALTER AVAILABILITY
GROUP command failed
because it contained
multiple MODIFY REPLICA
options: %ls. Enter a
separate ALTER
AVAILABILITY GROUP ...
MODIFY REPLICA command
for each replica option that
you want to modify.
availability group
The
READ_ONLY_ROUTING_URL
'%.*ls' specified for
availability replica '%.*ls' is
not valid. It does not follow
the required format of
'TCP://systemaddress:port'. For
information about the
correct routing URL format,
see the CREATE
AVAILABILITY GROUP
docum
The availability replica
'%.*ls' specified in the
READ_ONLY_ROUTING_LIST
for availability replica
'%.*ls' does not exist. Only
availability replicas that
belong to the specified
availability group '%.*ls'
19405
19406
19407
19452
16
19453
16
19454
19455
16
16
19456
19458
19460
19468
16
19469
16
19477
16
19486
21872
16
16
21880
16
21882
16
21883
21884
16
16
21887
16
21892
16
33445
16
33446
16
'%s'.
The query at the redirected
publisher '%s' to determine
whether the publisher
database '%s' belonged to
an availability group failed
with error '%d', error
message '%s'.
Unable to query
sys.availability_replicas at
the availability group
primary associated with
virtual network name '%s'
for the server names of the
member replicas: error =
%d, error message = %s.',
The database '%.*s' is a
readable secondary
database in an availability
group and cannot be
enabled for FILESTREAM
non-transacted access.
The FILESTREAM database
configuration cannot be
changed for database
'%.*s'. The database is
either a mirror database in
Database Mirroring, or is in
a secondary replica of an
AlwaysOn availability
group. Connect to the
server instance that hosts
the pr
33449
10
33450
10
35202
35205
10
16
35206
35207
35210
35212
35213
35217
35220
35221
35222
configuration option
Could not process the
operation. AlwaysOn
Availability Groups replica
manager is waiting for the
host computer to start a
Windows Server Failover
Clustering (WSFC) cluster
and join it. Either the local
computer is not a cluster
16 node, or the local cluster
Could not process the
operation. AlwaysOn
Availability Groups replica
manager is disabled on this
instance of SQL Server.
Enable AlwaysOn
Availability Groups, by
using the SQL Server
Configuration Manager.
Then, restart the SQL
16 Server service, and retry t
16 Could not process the
operation. AlwaysOn
Availability Groups does not
have permissions to access
the Windows Server
Failover Clustering (WSFC)
cluster. Disable and reenable AlwaysOn
Availability Groups by using
the SQL Server
35223
35224
35225
35226
16
35228
16
35229
16
35233
35237
16
16
35238
35239
35240
35242
35243
35244
35246
16
35247
16
35249
16
35254
16
35257
16
35259
16
35260
16
35261
16
AlwaysOn Availability
Groups Send Error (Error
code 0x%X, "NOT OK") was
returned when sending a
message for database ID
%d. If the partner is
running and visible over
the network, retry the
command using correctly
configured partnerconnection parameters
Database '%.*ls' is already
participating in a different
availability group.
During an attempted
database recovery, an
availability database
manager was not found for
database id %d with
availability group ID %d
and group database ID %ls.
Recovery was terminated.
The most likely cause of
this error is that the
availability group
Attempt to perform an
AlwaysOn Availability
Groups operation on a
system database, '%ls',
failed. System databases
are not supported by
AlwaysOn Availability
Groups.
35262
17
35264
10
35265
35266
10
10
35267
35275
35276
%.2x%.2x%.2x%.2x}. This
is an informational
message only. No user
action is
AlwaysOn Availability
Groups connection with
%S_MSG database
terminated for %S_MSG
database '%.*ls' on the
availability replica with
Replica ID: {%.8x-%.4x%.4x-%.2x%.2x-%.2x%.2x
%.2x%.2x%.2x%.2x}. This
is an informational
message only. No user
10 action is r
A previous RESTORE WITH
CONTINUE_AFTER_ERROR
operation or being
removed while in the
SUSPECT state from an
availability group left the
'%.*ls' database in a
potentially damaged state.
The database cannot be
joined while in this state.
16 Restore the database
17 Failed to allocate and
schedule an AlwaysOn
Availability Groups task for
database '%ls'. Manual
intervention may be
required to resume
synchronization of the
database. If the problem
35279
16
35280
16
35281
35282
16
16
35283
35284
35287
35288
35299
41039
41040
41042
41043
41044
16
41045
16
41046
41048
16
10
41049
10
41050
10
41051
10
41052
41053
10
10
41054
10
41055
10
41056
16
41058
10
41059
10
41060
16
41061
41062
10
16
AlwaysOn: Availability
group '%.*ls' was removed
while the availability
replica on this instance of
SQL Server was offline.
The local replica will be
removed now. This is an
informational message
only. No user action is
required.
The Cyclic Redundancy
Check (CRC) value
generated for the retrieved
availability group
configuration data from the
Windows Server Failover
Clustering (WSFC) store
does not match that stored
with the data for the
availability group with ID
'%.*ls'. The av
AlwaysOn: The local replica
of availability group '%.*ls'
is stopping. This is an
informational message
only. No user action is
required.
The ID of availability group
'%.*ls' in local data store is
inconsistent with that in
the Windows Server
Failover Clustering (WSFC)
data store. The availability
group may have been
dropped and recreated
while the SQL Server
41063
41066
41069
41070
16
41071
16
41072
41073
16
16
41074
41075
41076
41080
16
41081
16
41089
10
41091
10
41092
10
41093
10
41094
10
41095
10
41096
10
41097
10
41098
41099
10
10
41100
41101
41102
required.
The availability group
'%.*ls' and/or its local
availability replica does not
exist. Verify that the
specified availability group
name is correct, and that
the local availability replica
has joined the availability
group, then retry the
16 operation.
The availability group with
Windows Server Failover
Clustering resource ID
'%.*ls' and/or its local
availability replica does not
exist. Verify that the
specified availability
resource ID is correct, and
that the local availability
16 replica has joined the
Failed to persist
configuration data of
availability group '%.*ls' in
the Windows Server
Failover Clustering (WSFC)
cluster. The local
availability replica either is
not the primary replica or is
10 shutting down.
41103
10
41104
16
41106
41107
16
16
41108
41109
41110
41111
10
41112
16
41113
16
41114
41115
16
16
41116
16
41117
16
41118
16
41119
16
41121
10
41122
16
41126
16
41127
16
41128
16
41129
16
41130
16
41131
41132
10
16
Failed to schedule or
execute database
operation '%s' on database
'%.*ls' (Database ID: %d) in
availability group '%.*ls'
(SQL OS error: %d). The
instance of SQL Server may
have insufficient resources
to carry out the database
operation. If the problem p
Operation '%s' on a
database '%.*ls' (Database
ID: %d) in availability group
'%.*ls' failed with SQL
Server error %d (Error
details: "%.*ls"). The
operation has been rolled
back. See previous error
messages in the SQL
Server error log for more
details.
Failed to bring availability
group '%.*ls' online. The
operation timed out. Verify
that the local Windows
Server Failover Clustering
(WSFC) node is online.
Then verify that the
availability group resource
exists in the WSFC cluster.
If the problem persis
Cannot join database
'%.*ls' to availability group
'%.*ls'. The specified
database does not belong
to the availability group.
41133
41134
41135
41136
16
41137
10
41138
41139
17
10
41140
41141
41142
informational message
only. No user action is
required.
Availability group '%.*ls'
cannot process the ALTER
AVAILABILITY GROUP
command, because the
local availability replica is
not the primary replica.
Connect to the server
instance that is currently
hosting the primary replica
16 of this availability group, an
Failed to set availability
group database information
for availability group %.*ls.
The local availability replica
is not the primary, or is
shutting down. This is an
informational message
only. No user action is
16 required.
16 The availability replica for
availability group '%.*ls' on
this instance of SQL Server
cannot become the primary
replica. One or more
databases are not
synchronized or have not
joined the availability
group, or the WSFC cluster
was started in Force
Quorum
41143
41144
41145
10
41146
16
41147
41148
10
16
41149
16
41150
16
41151
41152
16
16
the correc
Operation on the
availability group '%.*ls'
has been cancelled or
terminated, either because
of a connection timeout or
cancellation by user. This
is an informational
message. No user action is
required.
Failed to take availability
group '%.*ls' offline. The
Windows Server Failover
Clustering (WSFC) service
may not be running, or it
may not be accessible in its
current state. Verify the
local WSFC node is up and
then retry the operation.
Error accessing the
Availability Groups
manager. The local
Availability Groups
manager has not been
initialized. Wait until the
Availability Groups
manager is in a state that
allows access, and retry
the operation.
Failed to create availability
group '%.*ls'. The
operation encountered SQL
Server error %d and has
41153
41154
41155
41156
41157
41158
41159
16
41160
16
41161
41162
16
16
41163
41164
41165
41166
41167
41168
41169
41170
41171
41172
16
41173
16
41176
10
41177
16
41178
16
41179
16
41180
41181
16
16
41182
41183
41184
41185
10
41186
16
41187
41188
16
16
41189
41190
41191
41192
17
41193
10
41194
41195
16
16
41196
16
41199
16
41402
41403
16
16
41404
16
41405
16
41406
16
41408
16
41410
16
41412
16
41414
16
41424
16
41428
16
An error occurred while loading the
AlwaysOn High Availability properties
[return code: 0x80070005].
The AlwaysOn Availability Groups feature
requires the x86(non-WOW) or x64
Enterprise Edition of SQL Server 2012 (or
later version) running on Windows Server
2008 (or later version) with WSFC hotfix KB
2494036 installed. This SQL Server edition
and/or Windows Server System does not
meet one or more of the requirements
983
14
3402
10
19471
19476
41009
16
16
16
41015
16
5057
5942
Application errors
4.
5.
6.
7.
8.
9.
Caveat list:
Before you patch, you can still keep automatic/manual failover setting no change. Just a reminder: if during
patching time, primary is down, automatic failover may fail if the secondary hasnt completed the patching.
If primary and secondary replicas are in multisubnet, your client may experience a little bit longer time of
disconnection or timeout during failover.
Please do remember to switch back to your original synchronization mode.
Node3 to Node4
Node4 to Node3
Node1 to Node2
Node2 to Node1