Guest User

Untitled

a guest
Mar 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. select dns_name as AG_Listener ,
  2. (select top 1 group_name from sys.dm_hadr_availability_replica_cluster_nodes ) as AG_Gorup,
  3. synchronization_health_desc as AG_Status
  4. from sys.dm_hadr_availability_replica_states rs
  5. INNER JOIN sys.availability_group_listeners gl ON rs.group_id = rs.group_id
Add Comment
Please, Sign In to add comment