Always On Availability Groups Functions (Transact-SQL)

Applies to: SQL Server

SQL Server provides the following Always On Availability Groups functions.

In This Section

sys.fn_hadr_is_primary_replica

sys.fn_hadr_backup_is_preferred_replica

sys.fn_hadr_distributed_ag_replica

sys.fn_hadr_distributed_ag_database_replica