bonjour Mike, J'ai lu ton artcile sur le monitoring Alwayson en T-SQL Lorsque j'essaie le script sur un alwayson 2012 (2 noeuds), j'ai cette erreur : Msg 4145, Level 15, State 1, Line 34 An expression of non-boolean type specified in a context where a condition is expected, near 't_aag'. à ce niveau là du script: WHEN matched AND aag.primary_replica t_aag.primary_replica et à la fin: Msg 102, Level 15, State 1, Line 55 Incorrect syntax near ';'. à ce niveau: -- Reset work table DELETE FROM @t_aag_result; aurais-tu une idée ? merci sebastien