Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I'm trying to detach a database and I'm getting this error :

SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:234; actual 0:0).
It occurred during a read of page (1:234) in database ID 5 at offset 0x000000001d4000 in file 'D:\Path\MyDB.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. (Microsoft SQL Server, Error: 824)

What is the problem with this database file ? Other DBs are working well, only this one gives me this error.

share|improve this question
    
Odds favor corruption due to IO hardware problem, could be transient or rare. What was the result of DBCC CHECKDB? What did you find in SQL Server Books Online? Often these kinds of problems require restoring from backup; be prepared to do that if necessary. –  Mike Sherrill 'Cat Recall' Feb 15 '11 at 12:31
add comment

migrated from stackoverflow.com Jan 21 '12 at 15:01

This question came from our site for professional and enthusiast programmers.

1 Answer

Torn page usually. Do you have backups? DBCC may be able to fix it though

The king of DBCC is Paul Randal: to avoid my copy/paste, read these from him

And search his site too for "logical consistency"

share|improve this answer
    
than you @gbn, I restored my DB by creating it again. –  Al0NE Feb 16 '11 at 8:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.