If the database is in a recovery pending state and you are unable to recover it using the RECOVERY option, you can try using the EMERGENCY option. The EMERGENCY option allows you to access the database in a read-only state.
-- Look at error log for recovery failures EXEC sp_readerrorlog 0, 1, 'recovery', 'YourDBName';
: If the server crashed and the log file became corrupted or was deleted, SQL Server cannot roll back uncommitted transactions.
: The database files might be on a drive that is offline, disconnected, or has incorrect permissions.
DBCC CHECKDB ('DatabaseName', REPAIR_ALLOW_DATA_LOSS); GO