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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
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