Skip to content

Commit d8d6028

Browse files
authored
Merge pull request #4209 from MicrosoftDocs/master
12/6 AM Publish
2 parents 50e54dd + a175bd5 commit d8d6028

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/database-engine/availability-groups/windows/configure-distributed-availability-groups.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ ALTER AVAILABILITY GROUP [distributedag]
205205
GO
206206
```
207207

208+
## <a name="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+
ALTER DATABASE [db1] SET HADR AVAILABILITY GROUP = [ag1];
213+
```
208214

209215
## <a name="failover"></a> Fail over to a secondary availability group
210216
Only manual failover is supported at this time. The following Transact-SQL statement fails over the distributed availability group named `distributedag`:

0 commit comments

Comments
 (0)