Last active
June 25, 2016 13:13
-
-
Save arman-hpp/d00ee4e9a43a89f98afc7fd0cd09beb5 to your computer and use it in GitHub Desktop.
SuspectDatabase
This file contains hidden or 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
EXEC sp_resetstatus [YourDatabase]; | |
ALTER DATABASE [YourDatabase] SET EMERGENCY | |
DBCC checkdb([YourDatabase]) | |
ALTER DATABASE [YourDatabase] SET SINGLE_USER WITH ROLLBACK IMMEDIATE | |
DBCC CheckDB ([YourDatabase], REPAIR_ALLOW_DATA_LOSS) | |
ALTER DATABASE [YourDatabase] SET MULTI_USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment