Recovery state

The global variable @@ recovery_state determines if Adaptive Server is in recovery. The values that this global variable can have are:

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