SQL Server detected a consistency-based logical I/O error

Source: Internet
Author: User
Tags sql server books server error log

Background: Create a new DB_GZN recovery database backup file

Execution: SELECT * from VI_MPS_PAPLT

Error message:

MSG 824, Level 24, State 2, line 2nd SQL Server detected a consistency-based logical I/O error checksum is incorrect (should be: 0x20d61048, but actually: 0x7a8ab3ae). In the file ' C:/Program files/microsoft SQL server/mssql10. This error occurs during the reading of the page (1:9,397) in database ID 13, where the offset is 0x0000000496a000 in Mssqlserver/mssql/data/db_gzn.mdf '. Additional messages in the SQL Server error log or the system event log may provide more detailed information. This is a serious error condition that threatens the integrity of the database and must be corrected immediately. Please perform a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; For more information, see SQL Server Books Online.

Repair process:

1.ALTER DATABASE DB_GZN Set Single_user--set to single user

Go

2.DBCC CHECKDB (DB_GZN, Repair_allow_data_loss) with NO_INFOMSGS--Allow data loss

Go

3.ALTER DATABASE DB_GZN Set Multi_user--set to multi-user

Go

Execution Result: fix

To perform a process tip:

SQL Server detected a consistency-based logical I/O error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.