Recovery State

The global variable @@ recovery_state determines if SAP ASE is in recovery.

The values that @@ recovery_state can have are:

@@recovery_state can be used by applications to determine when all the databases are recovered and brought online.