Read/Write Error

Message Text

kernel: operating system error %d (%s) encountered

Explanation

Microsoft® SQL Server™ failed to read from or write to the specified location on disk. This failure is usually a result of a physical disk problem like a bad sector on the disk drive or a failure of the disk drive or controller.

Action

Identify the device with the problem by selecting the row from sysfiles that has the same disk name indicated in the error message:

USE master

GO

SELECT name, filename

FROM master..sysfiles

GO

  

The output from this query should provide the physical name of the damaged disk. Examine the disk as soon as possible and correct any problems. After the disk drive or controller problem is resolved, restore from a backup, if available. If no backup is available, execute DBCC CHECKDB with the REPAIR_DATA_LOSS clause to deallocate the damaged pages from the database.


Warning Using the REPAIR_ALLOW_DATA_LOSS clause of DBCC CHECKDB may cause a loss of data if the disk damage was to a data or text page. If the hardware problem is not corrected properly before executing DBCC CHECKDB, the damaged pages will be reallocated and this problem will continue.


After executing DBCC CHECKDB with the REPAIR_ALLOW_DATA_LOSS clause, back up the repaired data, fix the hardware errors, and reload the previously backed up data.

See Also
DBCC CHECKDB sysfiles

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.