solidDB Help : Programming : Using HotStandby with applications : Basic Connectivity : Reconnecting to primary servers from applications : Using the HOTSTANDBY_CONNECTSTATUS function
  
Using the HOTSTANDBY_CONNECTSTATUS function
To verify connection status information when an application reconnects to a primary server, you can use the HOTSTANDBY_CONNECTSTATUS function. This function is equivalent to using the following command:
ADMIN COMMAND 'hotstandby status connect'
The function has no arguments and returns one of the following status values:
 
Status
Description
CONNECTED
The connection is active. This status is returned from both the primary and secondary servers.
CONNECTING
The primary server is connecting to the secondary server. This status is returned from both the primary and secondary servers.
CATCHUP
The primary server is connected to the secondary server, but the transaction log is not yet fully copied. This status is returned from both the primary and secondary server.
BROKEN
The connection is broken. This status is returned from both the primary and secondary servers.
Go up to
Reconnecting to primary servers from applications