Recovery state

The global variable @@ recovery_state determines if Adaptive Server 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.