-
SQL server database in suspect mode
Hi,
I am using SQL Server database 2008 R2. How can I repair my database from the suspect mode?
-
restoring from good backup is best way.
-
I do not have updated backup
-
-
Run this query:
EXEC sp_resetstatus ‘YourDatabaeName’;
ALTER DATABASE YourDatabaeName SET EMERGENCY
DBCC checkdb(’YourDatabaeName’)
ALTER DATABASE YourDatabaeName SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB (’YourDatabaeName’, REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE YourDatabaeName SET MULTI_USER
in 80% cases, this query help to repair the database.
Good Luck!
-
Thanks a lot Nicholas for your help. It works
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|