How to fix page corruption at SQL server level?

How can I fix page level corruption in sql database. I ran into a big problem related to this. Can someone help me.

+6
source share
1 answer
  • Go to SQL Server Management Studio

    • Choose DB

    • Right click DB

    • Go to Properties

    • Select Options"

    • In the Other Options section, select Page Check

    • Choose as NO.

  • Run this query to change the database to single user mode

    • ALTER DATABASE corrupted_db SET SINGLE_USER WITH ROLLBACK IMMEDIATE
  • , /DB.

    • DBCC CheckTable ('corrupted_table', REPAIR_ALLOW_DATA_LOSS)

()

  • DBCC CheckDB ('corrupted_db', REPAIR_ALLOW_DATA_LOSS)

    1. Sql " "

ALTER DATABASE SET MULTI_USER

  1. SQL Server Management Studio

DB

DB

""

" " " "

CHECKSUM.

  1. DBCC CHECKDB ('Your DB')
+3

Source: https://habr.com/ru/post/1017230/


All Articles