To fix this you can run the following query (replace “MyDataBaseName” with the database name):
ALTER DATABASE MyDataBaseName SET EMERGENCY DBCC checkdb ('MyDataBaseName') ALTER DATABASE MyDataBaseName SET SINGLE_USER WITH ROLLBACK IMMEDIATE DBCC CheckDB ('MyDataBaseName', REPAIR_ALLOW_DATA_LOSS) ALTER DATABASE MyDataBaseName SET MULTI_USER
Source:
http://gargmanoj.wordpress.com/2008/07/17/how-to-repair-a-sql-server-2005-suspect-database/
sql repair has all necessary probabilities for working out troubles related to bad mdf files. It can repair .mdf files after various issues: power failures, viruses, hacker attacks. The tool view restored mdf files for you.
ReplyDeleteRestoring data from corrupt SQL Database is not an easy task. A third party SQL database recovery software may help the users to get upto 100 % data in such type situations. One of the best and globally used application can be downloaded from here:
ReplyDeletehttp://www.recoverydeletedfiles.com/sql-database-recovery-software.html