Database Corrupt – AumTechHub.Com http://aumtechhub.com Just share it!!! Tue, 23 Nov 2021 01:45:18 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 179596041 How to fix DBCC errors? http://aumtechhub.com/fix-dbcc-errors/?utm_source=rss&utm_medium=rss&utm_campaign=fix-dbcc-errors Wed, 26 Aug 2020 00:01:06 +0000 http://aumtechhub.com/?p=27 How to repair your database when you get DBCC errors.

Put the database in single user mode.

ALTER DATABASE YourDBName SET SINGLE_USER WITH ROLLBACK IMMEDIATE;

Go;

Then run the following code:
DBCC CHECKDB(N'YourDBName', REPAIR_ALLOW_DATA_LOSS);

Then put the database back in multi-user mode.

ALTER DATABASE [YourDBName] SET MULTI_USER;

Go;

]]>
27