Question

We've created huge database in Microsoft SQL Server 2008 R2

Almost all the week we work in it. But when some hours ago we’ve tried to open it, SQL demonstrated - Database consistency errors reported by DBCC CHECKB. We tried for recovery mdf via SQL Server Management Studio, but it couldn’t handle. Now we have to fix all the troubles and to start work with database again.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It Repairs corrupt SQL Database (.mdf and .ndf) files and also recovers deleted records from SQL Database. Supports MS SQL Server 2017, 2016, 2014, 2012, 2008 and older versions. download this software it’s free. https://www.stellarinfo.co.in/software/ppc/sql-repair/ Piriform Recuva

Stop the SQL Server and rename back the .mdf file to the old one. Start the SQL Server and try to run the following:

https://msdn.microsoft.com/en-us/library/ms189275(v=sql.120).aspx https://download.cnet.com/Recuva/3000-2242_4-10753287.html https://download.cnet.com/Recovery-Toolbox-for-SQL-Server/3000-10254_4-10825629.html

USE master GO

ALTER DATABASE Db_users SET MULTI_USER GO

ALTER DATABASE Db_users SET PAGE_VERIFY CHECKSUM