Link to home
Start Free TrialLog in
Avatar of dtbmw
dtbmw

asked on

I/O error (bad page ID): cannot recover. Urgent!!

Hi guys,

The SQL server was restarted this morning and three databases didn't start up and were marked as Suspect. In the logs I have the follwoing error:

I/O error (bad page ID) detected during read at offset 0x00000000010000 in file 'C:\Program Files\Microsoft SQL Server\MSSQL\data\GTHub_Data.MDF'..

I cleared the flag  and put it to emergency mode (read somewhere than while in this mode I could have access to the data) with the following commands:

exec Sp_configure 'allow updates', 1
go
Reconfigure with override
go

exec sp_resetstatus GTHub
go
update sysdatabases set status = 32768 where name = 'GTHub'
go

exec Sp_configure 'allow updates', 0
go
Reconfigure with override
go


But still marked as Suspect.

The database recovery model is Simple, and we dont seem to have a good backup. The only one are files copied at the OS level by a backup software, but when I try to attach the files it says they are not the primary source. Then created a new db, shutdown the server, replace the old db files with those recovered by the backup software, and restarted the server. Encountered that, although those are supposed to be our backup files, they were marked as suspect too.

How coud we recover the data from our MDF-LDF?  

Using Sql Server 2000, SQL Server 8.00.2039 - SP4 (Developer Edition). Server Windows 2003 using SCSI RAIS array of discs.

Any help to get our data back will much be appreciated.

Avatar of EugeneZ
EugeneZ
Flag of United States of America image

try to run ms-dos utility CHKDSK- to find and fix bad sectors ( if there are any)

CHKDSK /F

CHKDSK   Checks a disk and displays a status report.
 /F              Fixes errors on the disk.
Avatar of dtbmw
dtbmw

ASKER

Thank you. Already did without success, although found some errors in the file system.
ASKER CERTIFIED SOLUTION
Avatar of EugeneZ
EugeneZ
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial