You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/database-engine/availability-groups/windows/configure-distributed-availability-groups.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,12 @@ ALTER AVAILABILITY GROUP [distributedag]
205
205
GO
206
206
```
207
207
208
+
## <aname="failover"></a> Join the database on the secondary of the second availability group
209
+
After the database on the secondary of the second availability group has went into a restoring state you have to manually join it to the availability group.
210
+
211
+
```sql
212
+
ALTERDATABASE [db1] SET HADR AVAILABILITY GROUP = [ag1];
213
+
```
208
214
209
215
## <aname="failover"></a> Fail over to a secondary availability group
210
216
Only manual failover is supported at this time. The following Transact-SQL statement fails over the distributed availability group named `distributedag`:
0 commit comments