Permalink
Browse files

Do not get distributed availability groups info on secondary DAG

  • Loading branch information...
gboge committed Oct 6, 2017
1 parent e9c1d48 commit 57069f2c9bc2c5b9f2a1d46fb26cfcbd4aa96102
Showing with 1 addition and 0 deletions.
  1. +1 −0 KServer.cs
View
@@ -1809,6 +1809,7 @@ SELECT g.name
AND r.group_id = rs.group_id
INNER JOIN dist ON r.group_id = dist.distributedGroupId
WHERE role = 2
AND EXISTS (SELECT * FROM sys.availability_groups g2 WHERE g2.name = gs.primary_replica)
ORDER BY sort
, role
, availability_mode desc

0 comments on commit 57069f2

Please sign in to comment.