Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I/O Error while attaching database

Status
Not open for further replies.

rrowland

Technical User
Jun 21, 2001
33
0
0
CA
I am trying to attach a .mdf SQL Database file to an new SQL server. I receive the following error.

I/O error (bad page ID) detected during read at offset 0x00000000030000 in file <filename>

Can anyone tell me if there is a utility that I can run to fix this problem?

Thanks,

Richard

 
Not easily. Always best to use backup restore for this sort of thing as it's more reliable and you still have the source database if the mdf isn't attachable.

Try it on the source server to see if it's a problem with the destination.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
That is the problem...

Our SQL Server crashed and the data was corrupt.. No one put this patricular database in the maintenance plan so there are no backups.

:(

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top