CK's BLOG
this site the web

Repair SQL Server with status (Recovery Pending)

you can repair the issue using this script (this script is not mine)


Use [master]

EXEC sp_resetstatus RecoveryPendingModeDB

ALTER DATABASE RecoveryPendingModeDB SET EMERGENCY DBCC checkdb('RecoveryPendingModeDB')

ALTER DATABASE RecoveryPendingModeDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE

DBCC CheckDB('RecoveryPendingModeDB',REPAIR_ALLOW_DATA_LOSS)

ALTER DATABASE RecoveryPendingModeDB SET MULTI_USER

EXEC sp_resetstatus 'RecoveryPendingModeDB'




Replace RecoveryPendingModeDB with your actual database name with status 'Recovery Pending'.



You can read in detail here: https://www.zubairalexander.com/blog/how-to-fix-sql-server-databases-in-suspect-or-recovery-pending-mode/ 
 

Just An Information

I will updat useful information as frequent as I could...

Technology

Usage Policies