Bonjour,
je cherche à récupérer la liste de toutes les bases d'un groupe disponibilité Alwayson sans passaer par SSMS ?
Merci.
A+
Version imprimable
Bonjour,
je cherche à récupérer la liste de toutes les bases d'un groupe disponibilité Alwayson sans passaer par SSMS ?
Merci.
A+
Hello,
Utilise la DMV sys.dm_hadr_database_replica_states
++
Bonjour,
Merci j'ai fait une jointure avec la table sys.databases pour récupérer les noms des bases mais je n'ai toujours pas les noms de mes group disponibilité ....
Merci
A+
Je cherche une combine entre les tables:
sys.dm_hadr_database_replica_state
sys.dm_hadr_availability_replica_states
sys.dm_hadr_availability_group_states
sys.databases
Mais sans succes pour le moment
A +Code:
1
2
3
4 SELECT DISTINCT ag.name AS AV_group_name, DB_NAME(database_id) AS DBNAME FROM sys.dm_hadr_database_replica_states AS drs JOIN sys.availability_groups AS ag ON drs.group_id = ag.group_id
Merci bcp.
A+