EXEC sp_readerrorlog 0, 1, 'recovery pending';
ALTER DATABASE YourDB SET EMERGENCY; ALTER DATABASE YourDB SET SINGLE_USER; DBCC CHECKDB (YourDB, REPAIR_ALLOW_DATA_LOSS); -- SQL Server will rebuild a new log automatically ALTER DATABASE YourDB SET MULTI_USER;
Occasionally, a database may fail to transition to the "Online" state and instead label itself as "Recovery Pending." In the SQL Server Management Studio (SSMS) Object Explorer, this is visually indicated by the database icon containing a yellow warning triangle. Unlike a "Suspect" status, which implies corruption has been detected, "Recovery Pending" generally implies an external resource failure prevented the recovery process from starting or completing.
EXEC sp_readerrorlog 0, 1, 'recovery pending';
ALTER DATABASE YourDB SET EMERGENCY; ALTER DATABASE YourDB SET SINGLE_USER; DBCC CHECKDB (YourDB, REPAIR_ALLOW_DATA_LOSS); -- SQL Server will rebuild a new log automatically ALTER DATABASE YourDB SET MULTI_USER;
Occasionally, a database may fail to transition to the "Online" state and instead label itself as "Recovery Pending." In the SQL Server Management Studio (SSMS) Object Explorer, this is visually indicated by the database icon containing a yellow warning triangle. Unlike a "Suspect" status, which implies corruption has been detected, "Recovery Pending" generally implies an external resource failure prevented the recovery process from starting or completing.