| title | Always On Availability Groups Functions (Transact-SQL) | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 03/17/2017 | |
| ms.prod | sql | |
| ms.prod_service | database-engine | |
| ms.reviewer | ||
| ms.technology | system-objects | |
| ms.topic | language-reference | |
| dev_langs |
|
|
| ms.assetid | 293cc233-8688-4823-9887-176ed772f53d | |
| author | MikeRayMSFT | |
| ms.author | mikeray | |
| manager | craigg |
[!INCLUDEtsql-appliesto-ss2012-xxxx-xxxx-xxx-md]
[!INCLUDEssNoVersion] provides the following Always On Availability Groups functions.
sys.fn_hadr_is_primary_replica
sys.fn_hadr_backup_is_preferred_replica