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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bad Page ID during simple query

Status
Not open for further replies.

JBalcerzak

Programmer
Sep 5, 2002
73
0
0
US
I'm getting the following error when I try to do a simple query on our database:

I/O error (bad page ID detected during read at offset 0x000001010bc000 in file 'F:\MSSQL\Data\Database.mdf'

Is there any way to fix this, or do I need to dump and rebuild my database?
 
In Books Online, read up on DBCC CHECKDB Recommendations. You may be able to get it fixed.

You could also try restarting SQL Server, and see if the problem goes away.
 
dbcc checkdb will fix this for you. Run dbcc checkdb ({database_name}) and it will tell you which switch is needed to fix the problem. The database will be unavailable while this is running.

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top