Tuesday, 11 June 2024

How to fix Recovery Pending State in SQL Server Database?

 How to fix Recovery Pending State in SQL Server Database?

 

ALTER DATABASE [DBName] SET EMERGENCY;
GO

ALTER DATABASE [DBName] set single_user
GO

DBCC CHECKDB ([DBName], REPAIR_ALLOW_DATA_LOSS) WITH ALL_ERRORMSGS;
GO 

ALTER DATABASE [DBName] set multi_user
GO

No comments:

Post a Comment

Note: only a member of this blog may post a comment.