Created
November 4, 2019 04:49
-
-
Save indrapermana/f49077a38de25d849a00bac9195261b4 to your computer and use it in GitHub Desktop.
sql server fix recovery pending
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER DATABASE [DB_NAME] SET EMERGENCY; | |
GO | |
ALTER DATABASE [DB_NAME] set single_user; | |
GO | |
DBCC CHECKDB ([DB_NAME], REPAIR_ALLOW_DATA_LOSS) WITH ALL_ERRORMSGS; | |
GO | |
ALTER DATABASE [DB_NAME] set multi_user; | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment