$primary
Check whether the server is the Primary server under the Mirroring mode.
Syntax:
$primary
Returns:
true – if the server’s role is the Primary under the Mirroring mode.
false – otherwise
Version Since:
2.3
Example:
$primary = false
If the server is not Primary server under the Mirroring mode. It means the server is the Secondary server,