(Cluster environments only) Returns the recovery status of the specified database. Returns the recovery status of the current database if you do not include a value for database_ID or database_name.
db_recovery_status([database_ID | database_name])
select db_recovery_status()
select db_recovery_status("test")
select db_recovery_status(8)
0 – indicates the database is not in node-failover recovery.
1 – indicates the database is in node-failover recovery.
ANSI SQL – Compliance level: Transact-SQL extension.
Any user can execute db_recovery_status.