Sql server fatal error 824 occurred

SQL Server Error 824 which shows the message SQL Server detected a logical consistency-based i/o error 824 can be solved using Manual & Automated solutions

Home » SQL » SQL Server Error 824 – Troubleshooting Guide

SQL Server Error 824 – Troubleshooting Guide

Brief Overview

SQL server is a highly popular database management system and despite being efficient in its functioning makes the user encounter some errors during its usage. One such error is the SQL Server Error 824 which takes place due to logical consistency and is a fatal error.

SQL server database 824 error means that the page has been read successfully from the disk but there is some issue with the page. Other types of messages that might be shown are “fatal error 824 occurred” , “SQL server detected logical consistency based i/o error”. The exact display message can be more helpful in understanding this problem.

SQL Server Error 824 – Display Message

You may be shown the following error message when SQL server logical consistency error occurs in the database.

The problem of fatal error or logical consistency based i/o error occurred during a read of page (2:53686) in database ID 33 at offset 0x0000001554c000 in file.
‘E:MSSQL.SQL2010MSSQLDATAabc_d.mdf’
2017-09-10 01:30:12.80 spid50
Error: 824, Severity: 24, State: 2.
2017-09-10 01:30:12.80 spid50
SQL Server detected Logical Consistency-Based I/O error: incorrect page-id (expected 1:43601; actual 0:0)

Quick Solution: For recovering from fatal error 824 easily and for continuing usage of database services seamlessly use an automated software such as SQL Database Repair Tool

Possible Causes for SQL Server Error 824

SQL server error message 824 is displayed while using SQL Server due to several reasons which are given as follows

  • Insufficient storage space on disk can cause error code 824
  • Hardware device or driver software which acts as a medium may cause errors
  • File system inconsistency can also be reason for SQL server logical consistency error
  • Damage caused to the database files may be a prime cause for the problem as well
  • Corruption of the file system can also give rise to SQL fatal error 824

SQL server database 824 error may cause damage to the integrity of the database. Thus it is wise to perform consistency check of the entire database using inbuilt utility or repair file corruption through automated software.

Workarounds to Resolve SQL Server Error 824 Manually

There are some manual techniques which can help to troubleshoot fatal error 824. Follow the different inbuilt methods given below

Tip #1:  Carefully examine the suspect_pages table present in the database and find out if other pages are facing the same problem

Tip #2:  Check the state of consistency of the SQL server database which is present in the same volume. You can do this using the DBCC CHECKDB command.

Tip #3:  Turn on the PAGE_VERIFY CHECKSUM database option if it is not already activated

Tip #4:  Find out if any error has occurred through the OS, storage devices, or device drivers by checking the Windows event logs. Correct the errors, if any.

Tip #5:  SQLIOSim method can also be useful in finding out the status of SQL server database 824 error

If you don’t have backup created before attempting to resolve SQL server error 824, follow the steps given below instead

  1.  Stop all SQL Services
  2.  Copy and Save the corrupted SQL Server database at a new memory location
  3. Start all the SQL Services
  4.  Create a blank SQL database having the same name
  5. Separate your blank database from the original database.
  6. Run the query given below after performing the above-mentioned steps

EXEC sp_resetstatus ‘db_name’ ;
ALTER DATABASE db_name SET EMERGENCY
DBCC CHECKDB(‘db_name‘)
ALTER DATABASE db_name SET SINGLE_USER Mode
With ROLLBACK IMMEDIATE DBCC CHECKDB (‘db_name’ , REPAIR_ALLOW_ DATA_LOSS)
ALTER DATABASE ‘db_name’ SET MULTI_USER

Problems with Manual Workarounds

  • They are complex to follow and implement by users having limited technical expertise
  • A large amounts of time is required to be spent to properly resolve SQL fatal error 824
  • There is a risk of permanent database damage and if steps are not followed carefully.
Conclusion

The error 824 in SQL server can cause several problems to DBAs and to solve it is a major concern. Manual techniques are available but they can cause further troubles during usage. So to restore database to a normal state & to get rid of SQL server error 824, use an automated software solution.

SQL error 824 occurs due to logical inconsistency and is a fatal error.

Here at Bobcares, we have seen several such SQL related issues as part of our Server Management Services for web hosts and online service providers.

Today we’ll take a look at the cause for this error and see how to fix it.

More about SQL error 824

SQL error code 824 is a logical Input/Output error. It means that the disk successfully reads the page. However, there is some sort of issue on the page that leads to this error.

Here is an error message that appears in the SQL Server error log or the Windows Application event log.

~~
2020-09-03 15:46:42.90 spid51 Error: 824, Severity: 24, State: 2.
2020-09-03 15:46:42.90 spid51 SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:43686; actual 0:0). It occurred during a read of page (1:43686) in database ID 23 at offset 0x0000001554c000 in file ‘H:MSSQL.SQL2008MSSQLDATAmy_db.mdf’. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
~~

What causes SQL error 824 to occur

Here are the different causes of this error to occur.

To execute I/O operations, SQL servers use Windows APIs(ReadFile, WriteFile, ReadFileScatter, WriteFileGather).
After the execution of the I/O operation, the server checks for any errors related to APIs. Sometimes, the Windows API call actually succeeds but the data transferred by the I/O operation encounters a logical consistency problem. These logical consistency problems are reported via Error 824.

  • Insufficient storage capacity on the hard drive
  • Software or hardware failure
  • Corrupt database files are the main reason for the problem.
  • Discrepancies in the SQL’s file system

How we fix SQL error 824

Here are the steps that our Support Engineers follow to resolve this error.

1. Check the suspect_page table in msdb to verify that other pages are not facing the same error.

2. Using inbuilt DBCC CHECKDB command, check the state of consistency of the SQL server database that is located in the same volume.

3. Turn on the PAGE_VERIFY CHECKSUM database option. Because CHECKSUM provides the best option to verify the consistency of the page after it has been written to disk.

4. Check the Windows Event logs for any errors or messages reported from the Operating System or a Storage Device or a Device Driver.

5. Make use of SQLIOSim utility so that you can find out if these 824 errors can be reproduced outside of regular SQL Server I/O requests. SQLIOSim ships with SQL Server 2008 so there is no need for a separate download on this version or later.

6. Contact your hardware vendor to confirm the below:

  • The hardware devices and configuration is compatible with the I/O requirements of SQL Server.
  • Make sure that the device drivers and other supporting software components of all devices in the I/O path are updated.

7. In case, if the hardware vendor provides you any diagnostic utilities then make use of them to evaluate the health of the I/O system.

8. Check if there are any Filter Drivers that are present in the path of these I/O requests that encounter problems.

  • Look for any updates to these filter drivers
  • Check if these filter drivers are removed or disabled to see if the problem that results in the 824 error fixes.

9. If the problem is not relating to hardware and if a known clean backup is available then try restoring the database from the backup.

[Need any further assistance in fixing SQL errors? – We’re available 24*7]

Conclusion

In short, 824 error is a logical Input/Output (I/O) error. Today, we saw how our Support Engineers fix this SQL error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

Серер intel S5520UR + Intel (R) RAID Controller RS2BL080 + MS Win Server 2008 R2 Enterprise + Microsoft SQL Server 2008 R2

восемь дисков объеденены в 2 массива RAID-10 (на первом система и ПО, на втором базы)

MS SQL крутит базы для 1С

Вечером возникла ошибка 824, 1С сообщила, что нет доступа к базе, в итоге база «накрылась» и восстановить полностью не удалось (восстановили из backup за прошлый день).

У программистов 1С возникли подозрения, что ошибка связана с дисками, что это ошибка диска, но проверка на бэд-блоки показала, что все в порядке, в системном журнале нет ни намека на ошику в ОС, драйвере, железе, только ошибки SQL. Администратора баз у нас
как такогого нет, я же только железом занимаюсь, и сетью, в SQL не лезу и сильно не разбираюсь.

Хотелось бы понять , как то докапаться до сути ошибки, что бы этого не допустить в будущем. Если ошибка в железе, то нужно с этим чтото сделать, если ошибка возникла в результате сбоя MS SQL или 1С, то это тоже нужно как-то решать.

Сама ошибка такая:

SQL Server обнаружил логическую ошибку ввода-вывода, связанную с согласованностью: неверный идентификатор страницы (ожидаемый 1:4545818; фактический 0:511882718). Она произошла при прочитать страницы (1:4545818) в базе данных с идентификатором 13 по смещению
0x000008aba34000 файла «D:Базы 8.2pt_upp_newpt_upp_new.mdf». Дополнительные сведения см. в журнале ошибок SQL Server и журнале системных событий. Это серьезная ошибка, которая угрожает целостности базы данных и должна быть немедленно исправлена. Выполните
полную проверку базы данных на согласованность (DBCC CHECKDB). Эта ошибка может быть вызвана многими причинами; дополнительные сведения см. в электронной документации по SQL Server.

  • Изменено

    19 октября 2012 г. 4:18

  • Перемещено
    Abolmasov Dmitry
    19 октября 2012 г. 9:39
    (От:Работа с данными)

Summary: This blog will describe how to troubleshoot Microsoft SQL database error 824 by using a manual step-wise approach or by using a specialized SQL database repair software. Also, it will cover the possible reasons behind the 824 error.

Free Download for Windows

Contents

  • SQL Database Error 824: Error Message & Description
  • What Causes SQL Database Error 824?
  • Troubleshooting SQL Database Error 824
  • End Note

SQL database error 824 can render the database’s MDF and NDF files inaccessible, preventing you from accessing the objects stored in the database. You must troubleshoot the SQL server error 824 immediately to continue working on the database without any interruption or data loss.

SQL Database Error 824: Error Message & Description

Error Message:

Msg 824, Level 24, State 2, Line 1.

SQL error 824

Description:

The SQL Database error 824 is a logical Input/Output (I/O) error. A logical I/O means that the page is successfully read from the disk. However, there’s an error in the page itself. Moreover, a ‘logical consistency error’ clearly indicates damage due to corruption in the database where corruption is due to an I/O subsystem component that is faulty.

The SQL Server error 824 contains several  information that are as follows:

  • The database to which the database file belongs.
  • The database file against which the I/O operation is performed.
  • The offset with the database file where the I/O operation was attempted.
  • The page number associated with the I/O operation.
  • Information whether the operation was ‘read’ or ‘write’.
  • Particulars of failed logical consistency check. (The particular are: Type of check, actual value, and expected value used for this check.)

Note – If you come across this SQL database error 824, while raising a query or modifying data, the application is returned the error message, and the database connection is dismissed.

What Causes SQL Database Error 824?

For executing I/O operations, Microsoft SQL Server uses Windows API’s, such as ReadFile, WriteFile, ReadFileScatter, and WriteFileGather. After executing these I/O operations, the server checks for errors related to these API calls. If the API calls that have been stated here fail with an Operating System error, then the SQL Server reports error 823. There are circumstances when the ‘Windows API call’ is successful but the data moved by the I/O operation has met with logical consistency issues. Further, these issues are reported through SQL Server error 824.

Following are some other reasons responsible for SQL Server error 824:

  1. Issues in the underlying storage system
  2. Hardware or driver issue in the I/O path
  3. Corrupt or damaged SQL Server database MDF or NDF file
  4. Discrepancies in the SQL’s file system

Troubleshooting SQL Database Error 824

You can try to fix SQL database error 824 by using:

  • Manual Approach
  • Software Approach

Manual Approach

  1. Check the suspect_pages table in msdb to check if other pages in the same database or different databases are encountering this error.
  2. With the built-in DBCC CHECKDB command check the reliability of the databases that are located in the same volume (as the one stated in the 824 message). If you find discrepancies on using this command, then troubleshoot the reported database consistency errors.
  3. If the PAGE_VERIFY CHECKSUM database option in database is not switched on, do it as soon as possible.

Note: SQL error 824 can occur due to other reasons than a checksum failure. However, CHECKSUM offers you to validate a page’s consistency after it has been written on to the disk.

  1. Use the SQLIOSim utility to check if the SQL 824 error can be replicated outside of regular I/O requests in SQL Server.

Note – SQL Server 2008 comes with this utility. For another SQL version, you need to download it from the official website.

  1. Work with the vendor of your hardware or device manufacturer to ensure the following:
    • The ‘device drivers’ and other ‘supporting software components’ of all devices in the I/O path are updated and efficient.
    • The hardware devices and the configuration approve to the I/O requirements of SQL Server.
  2. If the hardware vendor or device manufacturer has provided you with diagnostic utilities, you should use them to assess if the I/O system is in working condition or not.
  3. Assess if there are ‘Filter Drivers’ existing in the path of I/O requests that face issues. To do so, check the following:
    • If there is any update to these ‘filter drivers.’
    • Can these ‘filter drivers’ be disabled or removed to observe if the issue that results in the SQL error 824 is fixed.

With these resolutions, you can troubleshoot SQL error 824. However, there are some disadvantages associated with these methods. All of them being manual, are lengthy and will consume a lot of your time. Plus, they involve risk of data loss and as well as failure due to lack of technical expertise.

Software Approach

Another alternative to fix SQL Server error 824 is to use SQL database repair software, as it helps repair the database to resolve SQL errors while reducing human intervention.

Recommended by Microsoft MVPs and DBAs, Stellar Repair for MS SQL is one software you can rely upon to resolve almost every issue that you can face while working with SQL Server database. Designed to repair the damaged SQL database (MDF) file successfully, the software performs the following as well:

  • Recovers objects, such as tables, triggers, keys, rules, indexes, defaults, and other databases objects
  • Recovers ‘deleted table records’ from the SQL Server
  • Allows selective recovery of database objects
  • Provides preview facilities of the database objects before saving them
  • Permits to save the repaired file in MS SQL (MDF), XLS, HTML, and CSV file formats
    • Users can save the SQL database as a New or Live database under the MDF option.
  • Supports SQL Server 2019, 2017, 2016, 2014, 2012, 2008, and all older editions
free download

End Note

As this blog suggests a number of manual methods and as well as an automatic way to fix error 824 in SQL database, you can use any. However, for quick and successful results you should go for Stellar Repair for MS SQL – an external but result-oriented software!

About The Author

Jyoti Prakash

Problem solver and Data recovery specialist. Usually share informative articles on data recovery, database corruption and ways to recover lost data.

Best Selling Products

Stellar Repair for MS SQL

Stellar Repair for MS SQL

Stellar Repair for MS SQL is an enterpri

Read More

Stellar Toolkit for MS SQL

Stellar Toolkit for MS SQL

3-in-1 software package, recommended by

Read More

Stellar Converter for Database

Stellar Converter for Database

Stellar Converter for Database is an eff

Read More

Stellar Repair for Access

Stellar Repair for Access

Powerful tool, widely trusted by users &

Read More

How To Fix SQL Database Error 824 — Causes & Solutions

Recently my friend was facing SQL database error 824 while working with the server database. After encountering error 824, she was unable to access the serves NDF and MDF files. I helped her to fix it and like to help others who are facing the same issue. Therefore I’m writing this blog to demonstrate how to fix SQL database error 824 quickly and safely.

SQL servers are the best database management system of all the time. However, despite being the perfect functioning tool it faces various errors periodically. One such error is SQL error 824 which originated due to logical consistency and is a fatal error.

SQL error code 824 is a logical Input/Output (I/O) error means the page is successfully read from the disk however there is an issue in the page itself. In simple words, the main reason for error 824 is a corrupted database where corruption is transpired due to a faulty I/O subsystem component.

Cause for SQL Database Error 824

There are several reasons for the cause of the SQL server error which are as follows:

  1. SQL servers uses Windows API’s to execute I/O operations. Once the I/O operation is executed, server checks for any errors related to APIs. If the API fails then sever receive report error 824.
  2. Insufficient storage capacity on hard drive is one common cause for this error.
  3. Software or hardware failure also triggers this error.
  4. Corrupt or damaged database files are the prime reason for the problem.

This server database error 824 affects the functionality and integrity of the database. Therefore it is always advised to perform regular check of the database via the free inbuilt utility.

Methods to fix SQL Database Error 824

There are two methods that you can use to fix SQL error 824:

  1. Manual solution
  2. Automated SQL Database Repair Tool

Did You Know — Causes & Solution to Fix SQL Server Error 926

Manual Solution

  • Step 1. Thoroughly examine the suspect_page table in msdb to verify that other pages are not facing the same error.
  • Step 2. With the help of inbuilt DBCC CHECKDB command check the state of consistency of the SQL server database.
  • Step 3. If the PAGE_VERIFY CHECKSUM database is not switched on, then turn it on asap.
  • Step 4. Utilize the SQLIOSim tool to verify the state of the SQL 824 error.
  • Step 5. Check whether the error has occurred due the OS, drivers or storage device. Use Windows event logs to check.

It is recommended to create a backup of the SQL server database before attempting to resolver error. Follow these steps to generate backups:

  1. Close all the SQL services.
  2. Now copy and save the corrupted database at a new location on the drive.
  3. Restart SQL server and create a blank SQL database with the same name.
  4. Separate the new database with the original database and run the following commands/query.
  • EXEC sp_resetstatus ‘db_name’ ;
  • ALTER DATABASE db_name SET EMERGENCY
  • DBCC CHECKDB(‘db_name‘)
  • ALTER DATABASE db_name SET SINGLE_USER Mode
  • With ROLLBACK IMMEDIATE DBCC CHECKDB (‘db_name’ , REPAIR_ALLOW_ DATA_LOSS)
  • ALTER DATABASE ‘db_name’ SET MULTI_USER

Using the above steps you can troubleshoot SQL error 824. However, there are some drawbacks of these methods and few of them are mentioned below:

  • Complex and hard to follow for novice users.
  • Very time consuming and one small mistake can corrupt the whole database.
  • Not very safe as there is a risk of permanent damage to the database.
Automated SQL Database Repair Tool

The best alternative to remove SQL server database error 824 is to use a fully automated professional SQL database repair tool. This tool is developed with a high-end algorithm which can easily recover tables, views, stored procedure, programmability, triggers, default, and functions. It two recovery modes can recover maximum possible data from the damaged database. Also, it can even repair corrupted MDF and NDF files. The interface of this tool is simple and self-understanding which aids novice users.

Conclusion

We have discussed several manual methods and a automated solution to fix SQL database error 824. You can use any one of them according to your convenience, however, if you want a quick and 100% safe result then you should opt SQL database repair tool.

 Download Now    Buy Now

SQL Server is the most common type of database management system in these days which provides flexibility to the DBA’s to manage their database. But in the SQL Server databases the logical consistency based i/o error is a huge problem. The logical consistency problems/fatal error comes with Microsoft SQL Server Error 824.

SQL logical consistency based i/o error means that the page has been read successfully from the disk, but there is a problem with the page. You might also face ‘fatal error’ in the SQL Server error log or the Windows application event log. The supplementary messages of the SQL Server error log or system event log may provide more details about the logical consistency based error.

The problem of fatal error or logical consistency based i/o error occurred during a read of page (2:53686) in database ID 33 at offset 0x0000001554c000 in file.

‘F:MSSQL.SQL2010MSSQLDATAmy_db.mdf’
2010-09-12 01:35:12.80 spid50
Error: 824, Severity: 24, State: 2.
2010-09-12 01:35:12.80 spid50

SQL Server detected Logical Consistency-Based I/O error: incorrect page-id (expected 1:43686; actual 0:0).

SQL Server logical consistency based i/o error 824 may harm the database integrity. In such situation perform the consistency check of whole database using DBCC CHECKDB. Microsoft SQL Server Error 824 may occur due to many reasons such as hardware failure, disk subsystems etc.

When the logical consistency check fails during inserting data in a database or updating the database, then database shows an error message and return to the data and the database connection terminated.

Reasons of Microsoft SQL Server Fatal Error 824

Windows API’s like ReadFile; ReadFileScatter; WriteFile; WriteFileGather; is mainly used by the SQL Server to perform the various I/O operations. SQL Server reports the error message 823, at that time when the windows API’s calls failed.

It is possible that the Windows API call successfully, but the data transferred at that time may have logical consistency errors. The logical consistency error is reported as “Microsoft SQL Server Error 824”.

There are also some other reasons behind this error, these are as given below:

  1. The raising of error code 824 may the insufficient disk storage space.
  2. The hardware or driver which is in the I/O path may also create problems.
  3. The inconsistencies of the file systems also a reason of SQL Server Error Code 824.
  4. The damaged database file.
  5. File system corruption may create the error 824.

Containing Information by Logical Consistency Error

  1. Page read error in the database, e.g. (2:53686).
  2. The Page — ID error means that the requested page is not fetched from the disk, e.g. (expected 1:43686; actual 0:0).
  3. Severity level 24 shows it may be a fatal error related to the hardware.
  4. State 2 in SQL Server error message, for the database developers to identify and diagnose the error in code, from where system errors were raised.
  5. Line 1 shows that the error occurred is in which line.

Troubleshooting the Microsoft SQL Server Error 824

  1. Please go through the suspect_pages table into the database to check if other pages are encountering this problem.
  2. It is recommended that please check the consistency state of the databases which are situated in the same volume, using the DBCC CHECKDB command.
  3. Please check that the PAGE_VERIFY CHECKSUM database option is on if not then, turn it on.
  4. If any error occurs from the operating system, device driver or a storage device then check the Windows event logs. If the errors associated with these issues, then correct it.
  5. The SQLIOSim technique can also help to find out the logical consistency error 824.

The logical consistency based errors are regularly corruption issues which occurs due to inappropriate I/O subsystems. This error can be repaired without data loss if you have a complete database backup plans.

If you don’t have database backup plans, then follow the given certain lines:

  • Stop the SQL Services
  • Copy and Save the damaged SQL Server database at new location
  • Start the SQL Services
  • Create a blank database with the same name
  • Separate the empty database with orignial database.

After doing this run the given below query

EXEC sp_resetstatus ‘db_name’ ;
ALTER DATABASE db_name SET EMERGENCY
DBCC CHECKDB(‘db_name‘)
ALTER DATABASE db_name SET SINGLE_USER Mode
With ROLLBACK IMMEDIATE DBCC CHECKDB (‘db_name’ , REPAIR_ALLOW_ DATA_LOSS)
ALTER DATABASE ‘db_name’ SET MULTI_USER

If you are still getting the error messages and unable to restore the database, then in such situation you should go for a third party SQL repair tool to fix the problem.

Conclusion

In this article we have discussed about the logical consistency based i/o error and different methods to fix the error. Error message 824 associated with the SQL Server database also known as a fatal error.

Содержание

  1. MSSQLSERVER_824
  2. Сведения
  3. Симптом
  4. Причина
  5. Решение
  6. KB960770 — FIX: You receive error 605 and error 824 when you run a query that inserts data into a temporary table in SQL Server
  7. Symptoms
  8. Resolution
  9. Workaround
  10. Status
  11. More Information
  12. SQL Server 2008 R2 BPA information
  13. References
  14. References
  15. Исправление: Появляется сообщение об ошибке 605 и ошибку 824 при выполнении запроса, который вставляет данные во временную таблицу в SQL Server
  16. Проблемы
  17. Решение
  18. Обходное решение
  19. Статус
  20. Дополнительная информация
  21. Сведения о SQL Server 2008 R2 анализатора соответствия Рекомендациям
  22. Ссылки
  23. Ссылки

MSSQLSERVER_824

Область применения: SQL Server (все поддерживаемые версии)

Сведения

attribute Значение
Название продукта SQL Server
Идентификатор события 824
Источник события MSSQLSERVER
Компонент SQLEngine
Символическое имя B_HARDSSERR
Текст сообщения SQL Server обнаружил логическую ошибку ввода-вывода, связанную с согласованностью: %ls. Она произошла при %S_MSG страницы %S_PGID в базе данных с идентификатором %d по смещению %#016I64x файла «%ls». Дополнительные сведения см. в журнале ошибок SQL Server и журнале системных событий.

Симптом

В журнале ошибок SQL Server или журнале событий приложений Windows может появиться следующее сообщение об ошибке, если после чтения или записи базы данных произошел сбой проверки логической согласованности:

Если запрос SELECT или DML выполняется с этим сообщением, в приложение возвращается сообщение об ошибке, а подключение к базе данных прерывается.

Причина

Эта ошибка говорит о следующем: Windows сообщает об успешном считывании страницы с диска, но SQL Server обнаружил некоторые повреждения страницы. Эта ошибка похожа на ошибку 823, за исключением того, что Windows не обнаружила ошибку. Ошибка 824 обычно указывает на проблемы в подсистеме ввода-вывода, такие как отказ дисков, проблемы встроенного ПО, неисправные драйверы устройств и т. д. Дополнительные сведения об ошибках ввода-вывода см. в главе 2 документации Майкрософт об основных операциях ввода-вывода в SQL Server.

SQL Server использует следующие API-интерфейсы Windows для выполнения операций ввода-вывода: ReadFile , WriteFile , ReadFileScatter и WriteFileGather . После завершения этих операций ввода-вывода SQL Server проверяет наличие ошибок, связанных с этими вызовами API. Если эти вызовы API завершаются ошибкой операционной системы, SQL Server сообщает об ошибке 823. Бывают ситуации, когда вызов API Windows фактически выполняется успешно, но данные, передаваемые операцией ввода-вывода, могли столкнуться с проблемой логической согласованности. Эти проблемы с логической согласованностью выводятся через ошибку 824.

В сообщении об ошибке 824 содержатся следующие сведения:

  • Файл базы данных, для которого была выполнена операция ввода-вывода.
  • Смещение в файле, где была предпринята попытка выполнить операцию ввода-вывода.
  • База данных, которой принадлежит этот файл.
  • Номер страницы, включенной в операцию ввода-вывода.
  • Была ли это операция чтения или записи.
  • Сведения о проверке логической согласованности, которая завершилась сбоем (тип проверки, фактическое значение и ожидаемое значение, используемое для этой проверки).

Эти проверки логической согласованности представляют собой проверки целостности, выполняемые SQL Server, чтобы гарантировать, что ключевые элементы данных, участвующих в передаче ввода-вывода, оставались неизменными на протяжении всей операции ввода-вывода. К таким проверкам относятся контрольная сумма, разорванная страница, короткая передача, идентификатор неправильной страницы, устаревшее чтение и сбой аудита страницы. Характер выполненных проверок зависит от различных параметров конфигурации на уровне базы данных и сервера.

Сообщение об ошибке 824 обычно указывает на то, что возникла проблема с базовой системой хранения, оборудованием или драйвером, который находится в пути запроса ввода-вывода. Эта ошибка может возникать, если в файловой системе возникли несоответствия или если файл базы данных поврежден.

Решение

При возникновении ошибки 824 можно попробовать следующие решения.

Просмотрите таблицу suspect_pages в , msdb чтобы проверить, возникает ли эта проблема на других страницах (в той же или в разных базах данных).

Проверьте согласованность баз данных, расположенных в том же томе (как в сообщении 824), с помощью команды DBCC CHECKDB. При обнаружении несоответствий в команде DBCC CHECKDB воспользуйтесь рекомендациями из статьи базы знаний Устранение ошибок согласованности баз данных, о чем сообщает DBCC CHECKDB.

Если в базе данных, в которой возникают эти ошибки 824, параметр базы данных не PAGE_VERIFY CHECKSUM включен, включите параметр немедленно. Ошибки 824 могут возникать по другим причинам, кроме ошибки контрольной суммы, но CHECKSUM обеспечивает наилучший вариант проверки согласованности страницы после ее записи на диск. Используйте этот скрипт для определения баз данных, в которых параметр CHECKSUM не включен:

Проверьте журналы событий Windows на наличие ошибок или сообщений от операционной системы, устройства хранения или драйвера устройства. Если они каким-то образом связаны с этой ошибкой, сначала следует устранить эти ошибки. Например, помимо сообщения 824, вы также можете заметить такое событие, как «Драйвер обнаружил ошибку контроллера в DeviceHarddisk4DR4», сообщаемое источником диска в журнале событий. В этом случае необходимо проверить наличие этого файла на устройстве, а затем сначала исправить ошибки диска.

Используйте служебную программу SQLIOSim, чтобы узнать, можно ли воспроизвести ошибки 824 за пределами обычных запросов ввода-вывода SQL Server. SQLIOSim поставляется с SQL Server 2008 (10.0.x) и более поздних версий, поэтому отдельная загрузка не требуется.

Обратитесь к поставщику оборудования или изготовителю устройства, чтобы убедиться, что:

  • Аппаратные устройства и конфигурация соответствуют требованиям ввода-вывода SQL Server.
  • драйверы устройств и другие программные компоненты, поддерживающие все устройства в пути ввода-вывода, обновлены.

Если поставщик оборудования или изготовитель устройства предоставил вам какие-либо диагностические программы, используйте их для оценки работоспособности системы ввода-вывода.

Оцените наличие драйверов фильтров в пути ввода-вывода этих запросов. Чтобы получить список всех драйверов фильтров в системе, можно выполнить следующие команды:

  • Исключить файлы базы данных и журналов из проверки с помощью таких драйверов фильтров. Дополнительные сведения см. в разделе Каталоги и расширения имен файлов для исключения из проверки на вирусы.
  • Проверьте наличие обновлений для этих драйверов фильтра.
  • Можно ли удалить или отключить эти драйверы фильтров, чтобы увидеть, исчезнет ли проблема, которая приводит к ошибке 824?

Если вы используете виртуальную машину, убедитесь, что все драйверы виртуализации обновлены, или обратитесь к поставщику виртуализации для получения дополнительных сведений.

Если проблема не связана с оборудованием и доступна известная чистая резервная копия, восстановите базу данных из резервной копии.

Источник

KB960770 — FIX: You receive error 605 and error 824 when you run a query that inserts data into a temporary table in SQL Server

Bug: #50003826 (SQL Hotfix)

Microsoft distributes Microsoft SQL Server 2008 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 fix release.

Symptoms

In SQL Server 2008, you run a query that inserts data into a temporary table. The insert statement contains a subquery that references the same temporary table. When you run the query, you may receive an error message that resembles the following:

Msg 605, Level 21, State 3, Line 1

Attempt to fetch logical page (1:225) in database 2 failed. It belongs to allocation unit 281474980315136 not to 504403158513025024.

If you run the query again, you receive an error message that resembles the following:

Msg 824, Level 24, State 2, Line 1

SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0x50758180; actual: 0x15658bfc). It occurred during a read of page (1:336) in database ID 2 at offset 0x000000002a0000 in file ‘C:Program FilesMicrosoft SQL ServerMSSQL10.SQL2008MSSQLDATAtempdb.mdf’. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.

In some cases, you may also receive an error message that resembles the following:

Msg 601, Level 12, State 3, Procedure p rocedure name, Line line number
Could not continue scan with NOLOCK due to data movement.

A possible query construct that can produce these errors is as follows:

Resolution

The fix for this issue was first released in Cumulative Update 3. For more information about how to obtain this cumulative update package for SQL Server 2008, click the following article number to view the article in the Microsoft Knowledge Base:

960484 Cumulative update package 3 for SQL Server 2008Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

956909 The SQL Server 2008 builds that were released after SQL Server 2008 was releasedAfter you install this cumulative update package, you have to enable trace flag 4135. To do this, you can add the -T4135 startup parameter. Or, you can use the dbcc traceon(4135) statement for a specific session.

Workaround

To work around this issue, add a column that has both a clustered primary key and an identity property to the temporary table. For example, run the following statement to change the temporary table:

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the «Applies to» section.

More Information

Although you encounter error message 824 or 605, the database does not become corrupted. Also, these error messages reference pages from the tempdb database.

For more information about what files are changed, and for information about any prerequisites to apply the cumulative update package that contains the hotfix that is described in this Microsoft Knowledge Base article, click the following article number to view the article in the Microsoft Knowledge Base:

960484 Cumulative update package 3 for SQL Server 2008

SQL Server 2008 R2 BPA information

The SQL Server 2008 R2 Best Practice Analyzer (SQL Server 2008 R2 BPA) provides a rule to detect situations in which you do not have the cumulative update or the trace flag enabled to address this issue. The SQL Server 2008 R2 BPA supports both SQL Server 2008 and SQL Server 2008 R2.

If you run the BPA tool and encounter a «Database Engine — tempdb errors fix or trace flag missing» warning, you have to check the version of SQL Server and the trace flags that are configured to enable this fix.

References

SQL Server 2008 R2 BPA Rule

tempdb errors fix or trace flag missing

Note You can enable trace flag 4135 or trace flag 4199 to enable this fix. Trace flag 4135 was introduced in Cumulative Update package 3 for SQL Server 2008. Trace flag 4135 is also available in SQL Server 2008 Service Pack 1, in SQL Server 2008 Service Pack 2, and in SQL Server 2008 R2. Trace flag 4199 was introduced in Cumulative Update package 7 for SQL Server 2008, in Cumulative Update package 7 for SQL Server 2008 Service Pack 1, and in Cumulative Update package 1 for SQL Server 2008 R2. For more information about trace flag 4199, click the following article number to view the article in the Microsoft Knowledge Base:

974006 Trace flag 4199 is added to control multiple query optimizer changes previously made under multiple trace flags Because the fix for this problem involves a combination of a specific hotfix build and a trace flag to enable the fix, we are including the following table to show the different scenarios and the recommended action for you to take for each scenario.

For more information about the latest SQL Server builds, click the following article number to view the article in the Microsoft Knowledge Base:

957826 Where to find information about the latest SQL Server builds

References

For more information about the list of builds that are available after the release of SQL Server 2008, click the following article number to view the article in the Microsoft Knowledge Base:

956909 The SQL Server 2008 builds that were released after SQL Server 2008 was released

For more information about the Incremental Servicing Model for SQL Server, click the following article number to view the article in the Microsoft Knowledge Base:

935897 An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems

For more information about the naming schema for SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:

822499New naming schema for Microsoft SQL Server software update packagesFor more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Источник

Исправление: Появляется сообщение об ошибке 605 и ошибку 824 при выполнении запроса, который вставляет данные во временную таблицу в SQL Server

Ошибка: #50003826 (исправление SQL)

Корпорация Майкрософт распространяет исправления Microsoft SQL Server 2008 как один загружаемый файл. Так как исправления являются накопительными, каждый выпуск содержит все исправления и все исправления безопасности, которые были включены в предыдущие 2008 SQL Server исправления выпуска.

Проблемы

В SQL Server 2008 выполнение запроса, который вставляет данные во временную таблицу. Инструкция insert содержит вложенный запрос, который ссылается на одну и ту же временную таблицу. При выполнении запроса появляется сообщение об ошибке, подобное приведенному ниже:

Ошибка msg 605, 21 уровень состояние 3, строка 1Attempt для выборки логической страницы (1:225) в базе данных 2. Он принадлежит к 281474980315136 единицы размещения не для 504403158513025024.

При выполнении запроса, появляется сообщение об ошибке, подобное приведенному ниже:

Сообщение 824, уровень 24, состояние 2, строка 1

SQL Server обнаружил логическую ошибку ввода-вывода на основе соответствия: Неверная контрольная сумма (ожидается: 0x50758180; фактическая: 0x15658bfc). Она произошла во время чтения страницы (1:336) в базе данных ID 2 по смещению 0x000000002a0000 в файле «C:Program создаваемую SQL ServerMSSQL10. SQL2008MSSQLDATAtempdb.mdf «. Дополнительные сообщения в журнале событий системы или журнал ошибок SQL Server может предоставить более подробные сведения. Это серьезная ошибка, которую может нарушить целостность базы данных и должны быть исправлены немедленно. Выполните проверку согласованности базы данных (DBCC CHECKDB). Эта ошибка может быть вызвана многими причинами. Дополнительные сведения содержатся в разделе электронной документации по SQL Server.

В некоторых случаях может также появиться сообщение об ошибке, подобное приведенному ниже:

Msg 601, уровень 12, состояние 3, процедура p rocedure имя, номер строкине удалось продолжить просмотр с NOLOCK вследствие перемещения данных.

Запрос конструкцию, которая может приводить к этим ошибкам выглядит следующим образом:

Решение

Исправление этой уязвимости первого выпуска накопительного обновления 3. Дополнительные сведения о том, как получить этот накопительный пакет обновления для SQL Server 2008, щелкните следующий номер статьи базы знаний Майкрософт:

960484 Накопительный пакет обновления 3 для SQL Server 2008Примечание. Поскольку построения являются накопительными, каждый новый выпуск исправление содержит все исправления и все исправления, входившие в состав предыдущих SQL Server 2008 выпуска исправлений. Мы рекомендуем рассмотреть применение последнего выпуска исправления, содержащего это исправление. Дополнительные сведения см. в следующей статье базы знаний Майкрософт:

956909 SQL Server 2008 выполняет построение, выпущенных после выпуска SQL Server 2008После установки этот накопительный пакет обновления, необходимо включить флаг трассировки 4135. Чтобы сделать это, можно добавить -T4135 параметра запуска. Или можно использовать инструкцию dbcc traceon(4135) для конкретного сеанса.

Обходное решение

Чтобы обойти эту проблему, добавьте столбец с кластеризованного первичного ключа и свойство identity во временной таблице. Например выполните следующую инструкцию, чтобы изменить временной таблицы:

Статус

Корпорация Майкрософт подтверждает наличие этой проблемы в своих продуктах, которые перечислены в разделе «Применяется к».

Дополнительная информация

Несмотря на то, что возникнет сообщение об ошибке 824 или 605 базы данных не поврежден. Кроме того эти сообщения об ошибках ссылаются на страницы в базе данных tempdb.Дополнительные сведения о том, какие файлы изменяются, а для получения сведений о компонентах, необходимых для применения в накопительный пакет обновления, содержащий исправление, описанное в статье базы знаний Майкрософт, щелкните следующий номер статьи для просмотра Статья базы знаний Майкрософт:

960484 Накопительный пакет обновления 3 для SQL Server 2008

Сведения о SQL Server 2008 R2 анализатора соответствия Рекомендациям

SQL Server 2008 R2 анализатор соответствия рекомендациям (SQL Server 2008 R2 BPA) предоставляет правила для определения ситуаций, в которых нет накопительного обновления или флаг трассировки включен для решения этой проблемы. SQL Server 2008 R2 BPA поддерживает SQL Server 2008 и SQL Server 2008 R2. Если запустить средство анализатора соответствия Рекомендациям и встретиться «СУБД — tempdb исправить ошибки или отсутствует флаг трассировки» предупреждение, необходимо проверить версию SQL Server и флаги трассировки, которые настроены для активации этого исправления.

Ссылки

Правило SQL Server 2008 R2 анализатора соответствия Рекомендациям

исправить ошибки базы данных tempdb или отсутствует флаг трассировки

Примечание. Можно включить флаг трассировки 4135 или флаг трассировки 4199 Включение данного исправления. Флаг трассировки 4135 был представлен в накопительный пакет обновления 3 для SQL Server 2008. Флаг трассировки 4135 доступен также в Пакет обновления 1 для SQL Server 2008, Пакет обновления 2 для SQL Server 2008 и SQL Server 2008 R2. Флаг трассировки 4199 был введен в накопительный пакет обновления 7 для SQL Server 2008, накопительный пакет обновления 7 для SQL Server 2008 Пакет обновления 1 и накопительный пакет обновления 1 для SQL Server 2008 R2. Дополнительные сведения о флаге трассировки 4199 щелкните следующий номер статьи базы знаний Майкрософт:

974006 Флаг трассировки 4199 добавляется к элементу управления, несколько изменений оптимизатор запросов, сделанных в группе несколько флагов трассировки Так как исправление для этой проблемы включает в себя сочетание построения исправления и флага трассировки, чтобы активировать его, предоставляются вместе в следующей таблице показаны различные сценарии и рекомендуемые действия для выполнения для каждого сценария. Дополнительные сведения о последней версии сборок SQL Server щелкните следующий номер статьи базы знаний Майкрософт:

957826 Где найти сведения о последней версии SQL Server формирует

Ссылки

Дополнительные сведения о списке сборок, доступных после выпуска SQL Server 2008 щелкните следующий номер статьи базы знаний Майкрософт:

956909 SQL Server 2008 выполняет построение, выпущенных после выпуска SQL Server 2008Дополнительные сведения о добавочных модель обслуживания для SQL Server щелкните следующий номер статьи базы знаний Майкрософт:

935897 Модель обслуживания изменений, используемая рабочей группой SQL Server, предоставляет модель ISM для распространения исправлений обнаруженных проблемДополнительные сведения о схеме именования для обновления SQL Server щелкните следующий номер статьи базы знаний Майкрософт:

822499Новая схема присвоения имен пакетам обновлений программного обеспечения Microsoft SQL ServerДля получения дополнительных сведений о терминологии обновлений программного обеспечения щелкните следующий номер статьи базы знаний Майкрософт:

824684 Стандартные термины, используемые при описании обновлений программных продуктов Майкрософт

Источник

Multiple Methods to Fix SQL Server Error 824 Severity 24 State 2

“Hello! I am new to this forum. Kindly help me by solving this issue. I have been using SQL Server 2008 R2 for quite some time. Till now there have been no issues and everything was going fine. Only two days back, the SQL Server stopped working. There was no apparent reason and I am still wondering about its cause. When it stopped, an error message appeared that says: ‘SQL Server Detected A Logical Consistency-Based I/O Error: Incorrect Checksum. (Microsoft SQL Server Error 824).’ Please help me to fix this problem. I will be very grateful. Thanks.”

SQL Server is a relational database management system. Due to ease of use and other features, it has gained immense popularity. Therefore, its usage as a database management system is very common. Just because it is full of useful features, does not mean it has no demerits. For SQL Server users, various types of error are not unusual. When SQL database faces any error it usually stops working. So, as an SQL Server user, people have no way to ignore the errors.

For this post, we have chosen to discuss SQL Error 824 Severity 24 State 2. This is a logical consistency related error that occurs frequently to SQL Database users. As readers can see in the beginning, multiple users have asked for the solution to this error. Therefore, we will talk about the symptoms, reasons, and solutions for this error message.

Download Purchase Now

This page-level error usually occurs due to the logical inconsistency of SQL Server. When some issue is detected in the page while performing read/write command. This error appears.

Various information can be found in the SQL error message 824. Once you know the meaning of all parts of the error message, you will have a better understanding of the error.

  • The file belongs to which database
  • I/O operation was performed against which database file
  • Whether the operation was read or write
  • The I/O operation was related to which page number
  • Complete information about the failed logical consistency check (Actual and expected value used for checking, the category of checking, etc.)

Reasons for SQL Error 824

It is not quite easy to determine the exact cause of this error. Many facts can contribute to the occurrence of SQL Server error 824 severity 24 state 2.

  • Insufficient Storage: If the SQL Database does not have sufficient storage space, this error can occur.
  • Driver Issue: The drive (also called hardware) that is located in the I/O path can also be the main culprit behind this error.
  • File System inconsistency: Any sort of inconsistency in the file system can be the cause that user is getting SQL Error 824.
  • Damaged Database: If SQL Server Database is damaged in any way, it will show 824 error while trying to use.
  • Corruption: If the file system is corrupt, SQL Server error message 824 can appear.

How to Fix SQL Server Error 824 Severity 24 State 2

If you have encountered this error message while running SQL Server, you can try these remedial techniques sequentially.

1. Check if any other page (whether in the same or different databases) is having the same error. To do that, review the table in MSDB that contains the suspect pages.
2. You should also check the database consistency with DBCC CHECKDB command. If some issues are found, troubleshoot them. It has to be the database situated in the same volume mentioned in the error 824 error message.
3. If the PAGE_VERIFY CHECKSUM database option is turned off in the database with error 824, turn it on immediately. Though this error can be the result of many reasons, CHECKSUM is the best way to verify page consistency after a page gets written to disk.
4. Go through Windows Event logs to see if any error got reported by Operating System, Device Driver or Storage Device. If the reports or messages are any way connected to error 824, resolve those errors first. Guess, an event like “The driver detected a controller error on DeviceHarddisk4DR4” is present in the event log, being reported by the Disk Source. Then you have to find if the file is located in this device and then resolve the disk errors.
5. There is s built-in utility in SQL Server 2008 named SQLIOSim. It can be used to know if the error can be recreated outside regular SQL I/O requests. Remember to find this utility within SQL Server 2008 and you do not have to download it separately.
6. You have to work in collaboration with hardware vendor or device manufacturer in order to evaluate:

  • If the hardware and their configuration match the requirements of SQL Server IQ.
  • If all hardware (drivers) and software elements of I/O path device are updated or not

7. Proceed to examine I/O path health. If you have any diagnostic utilities provided by the hardware vendor or device manufacturer, use those.
8. Evaluate Filter Drivers existing in I/O requests path that is facing problems:

  • If an update is available for the filter drivers
  • Is it possible to remove or disable filter drivers to check if the error 824 goes away or not

Concluding Words

In this post, we have discussed SQL Server error 824 severity 24 state 2. Since this error can be fatal, users should immediately take necessary steps to get rid of this error. Users can implement the solutions mentioned here and become free from this error. If these methods fail to solve the problem, they can take help of SQL Server database repair utility. This software is capable of solving all types of SQL database corruption.

Frequently Asked Questions

Can I use the DBCC CHECKDB command to repair major level corruption from the SQL database?

You can use the DBCC command to check the damage level of the SQL database. However, it is not able to successfully recover high-level corruption.

What is the best solution to fix SQL database corruption errors?

SQL Recovery is the perfect solution to repair and restore SQL database including all objects like tables, stored procedures, etc.

Do you receive SQL Server error 824 often? This will restrict access to MDF and NDF files of Microsoft SQL Server. Also, you’ll find yourself unable to access the objects stored in the SQL database. In order to make things work again and prevent data loss situations, you must resolve SQL Server error 824. In this article, I’m going to discuss Microsoft SQL Server error 824, one of the most common and fatal SQL Server error messages. Also, I’ll help you learn how to resolve this Microsoft SQL Server error message.

There’s no doubt that Microsoft SQL Server is one of the best database management systems. It has great features and functionalities. On the other hand, it may cause some serious problems at times. While working with SQL Server database, it’s very common to encounter error messages. Whenever there’s a problem with the Microsoft SQL Server, you’re likely to receive a Microsoft SQL Server error. Have you ever faced an error message? How did you resolve or troubleshoot it? Sometimes it’s easy to fix the problem. But sometimes it might be challenging enough, especially for the novice users. SQL Server error 824 is one such fatal error message which may even lead to corruption.

Symptom

When the disk reads the page successfully but the page has some issues with it, you’re likely to receive the SQL Server error 824. Below is the screenshot of the error you may receive:

Microsoft SQL Server error 824

For example, you’re working on the SQL query. Suddenly, you receive the SQL Server error 824 on your screen and the database connection is canceled. The SQL Server error 824 indicates the following things, and you must check them:

  • Name of the database for which the I/O is inconsistent
  • Actual database name of the inconsistent file
  • File offset for a particular location
  • Page number for the inconsistent I/O operation
  • Details regarding the failure of consistency check

Possible Causes

It’s pretty hard to tell the exact reason behind SQL Server error 824. However, the most common reason is associated with the Windows API used by Microsoft SQL Server to carry out the I/O operations. Maybe the Windows API has successfully read the data of the disk, but the data may have caused the logical inconsistency. Any logical inconsistency can surely cause Microsoft SQL Server error. Besides this, there are few other reasons as well:

  • Insufficient Disk Space: Sometimes insufficient disk storage may result in data inconsistency.
  • Faulty Hardware: If the hardware devices associated with the I/O devices are faulty, you’re likely to face the logical inconsistency.
  • Corrupt SQL Database: If the SQL database is corrupt due to any reason, you’ll surely encounter error messages including this one.
  • Faulty Drivers: If the filter drivers you’re using are faulty, it may cause some errors during I/O operations.
  • Corrupt File System: If the file system of the disk is corrupt or it has an issue, it may also lead to inconsistency.

How to Troubleshoot SQL Server Error 824?

There’s an easy manual trick to resolve this Microsoft SQL Server error. Also, you can use a professional solution if the manual trick fails or doesn’t work. First, you should always try the DIY trick. Follow these simple steps:

Step 1: First, you need to check the suspect_pages table in the master database (MSDB) to find out if other pages are facing the problem.

Step 2: Now you need to check the state of consistency of the SQL Server database present in the same volume. You can run the DBCC CHECKDB command that can thoroughly scan the entire database to check its consistency and integrity.

Step 3: Then check the PAGE_VERIFY CHECKSUM database option. If it’s not activated, turn it on.

Note: The CHECKSUM command helps you validate page’s consistency after it has been written on to the disk.

Step 4: This time check the Windows event logs to find out if any error takes place in the OS, storage devices, or device driver. If the errors are found, correct them.

Step 5: You can use the SQLIOSim utility that helps you check if the SQL 824 error can be replicated outside of regular I/O requests in the Microsoft SQL Server.

Note: In Microsoft SQL Server 2008 and later versions, the SQLIOSim utility comes with the SQL Server product installation. But it the earlier versions, you need to download it as a separate download package.

Also, you need to check few more things here like:

  • The device drivers and other associated I/O software should be updated.
  • The filter drivers used during the I/O operation should be updated.
  • If you’re allowed to disable the filter drivers, you must do that.

Why Use a Professional Solution?

Sometimes the manual tricks may fail or not work. In such a situation, you should definitely use a professional SQL Database Recovery software. It provides you much better results than the manual tricks. Below are few drawbacks of the manual tricks:

  • Sometimes it might be complex to use the manual tricks, especially for the non-technical users.
  • It needs a lot of time to use the manual tricks.
  • If you don’t perform the manual tricks correctly and/or carefully, this may cause corruption in the SQL database.

Unlike the manual tricks, a professional solution like SQL Database Recovery software doesn’t require any prior technical expertise. Any technical or non-technical user can use this software with ease. It can quickly scan the SQL database and fix the errors. Via this tool, you can restore tables, triggers, indexes, keys, constraints, rules, defaults, etc. from the corrupt SQL database, and save them into a new one. It supports SQL database created by all popular versions of Microsoft SQL Server, such as 2000, 2005, 2008, 2012, 2014, and 2016.

Download Free Demo Version

SQL Database Recovery software is available with the demo version for free evaluation. Before purchasing the software, you must download the free demo version. By using the demo version, you can check the preview of your data which you can actually recover from the corrupt SQL database. And if you’re satisfied with the results, then only you should purchase the licensed version of the software.

Понравилась статья? Поделить с друзьями:
  • Sql server error reported
  • Sql server error 927
  • Sql server error 772
  • Sql server error 701
  • Sql server error 5171