-
Written By Lovely Baghel
-
Approved By Mithilesh Tata
-
Updated on April 1st, 2024
-
Reading Time: 3 minutes
Summary: This blog is going to help you out to solve the fatal error 823 occurred in MS SQL Server and it will also make you understand the cause and layout of the error. It’s a crucial issue, somewhere at a point we all have encountered it, so hope it is going to help you out. You can also opt for the best MSSQL Recovery , tool to fix fatal error 823 occurred in MS SQL Server Database file.. Download Now Purchase Now
Whenever a software/application tries to fetch some data, it accesses a certain Database. The Software can perform various functions over Database like:
These are the I/O operation which a software/application can perform over a database. Whenever there is a problem during these I/O operations then there could be an exceptional case that can cause the error (823).
In the above image, there is an error popup box where the error message is displayed. There are some underlined strings that are the key points of this message. These points represent some information:
BLACK Line: It is the I/O Check failure or an OS error. In the case of OS Error, the OS Error number follows “I/O Error”.
RED Line: This contains either Read or Write, which shows the operation during which the error occurred.
BLUE Line: This is the offset number that represents the Physical file offset from the start of the page. In easy words, by dividing this offset by 8192 you can get the logical page no. which is affected by the error.
GREEN Line: This is the MDF File with .mdf extension, which is associated with the I/O issue.
MDF File: It’s a Primary Data file that contains objects of the database like tables, views, stored procedures, triggers, etc.
NDF File: It’s a Secondary Data file, there is a possibility that any database doesn’t have a single secondary file or may have multiple secondary files.
It’s not a big deal to resolve this error but it needs a little understanding of commands and hardware. To solve this error there is a command which comes in handy that is DBCC CHECKDB. This command checks the logical and physical integrity of all objects in a specific database.
Method:
1. Run “DBCC CHECKDB(DATABSE_NAME,REPAIR_REBUILD);”TSQL statement.
Note: The Database should be in Single-user Mode if it is not then run another TSQL statement “ALTER DATABASE DB2 SET SINGLE_USER WITH ROLLBACK IMMEDIATE;”
2. Run ”DBCC CHECKDB” again to check if the database repaired or not.
If the fatal error 823 occurred problem remains the same either it could be a hardware issue then you need an IT member to resolve your hardware issue or it could be in need of database restoration. After the restoration of the database file, check again by running the statement CHECKDB.
To make it easy you can go for some automated tools also which can be helpful and as well as easy to handle. I went through the internet and found a hell out of tools available to restore your database or to fix fatal error 823 occurred and after doing a lot of comparisons and research the tool which I’ve found was MSSQL Recovery Tool. The tool is able to repair the corrupted mdf and ndf files of the database. It also assists in solving the SQL Server Recovery Pending Error and is supported by various versions of Windows.
About The Author:
As a Technical expert, I love to write blogs on email migration, data recovery, and cloud migration. In my free time, I like to research new things related to technology.
Related Post