$primary
Check whether the server is the Primary server under the Mirroring mode.
Available only in Advanced and upper editions
Syntax:
$primary
Returns:
true – if the server’s role is the Primary under the Mirroring mode.
false – otherwise
Version Since:
2.3
Where the function can be used:
- Preliminary rules
- Regular rules
Example:
$primary = false
If the server is not Primary server under the Mirroring mode. It means the server is the Secondary server,