Today I encountered a problem with the sql2008 database:
When a SELECT statement is executed on a table, the following prompt is displayed:
View plaincopy to clipboardprint?
Database ID 30 of the lob data type node, page (), slot 7 does not exist. This is usually caused by transactions that can read uncommitted data on the data page. Run DBCC checktable.
Database ID 30 of the lob data type node, page (), slot 7 does not exist. This is usually caused by transactions that can read uncommitted data on the data page. Run DBCC checktable.
Later, I tried another table and found that the table had such a problem. It was determined that the. MDF file had a problem.
Solution:
The recovery process is as follows: in SQL server2005 Enterprise Edition (SP2,
1. Stop the database service,
2. Start the service and ensure that there is no link to the website. Execute the following query:
View plaincopy to clipboardprint?
Use master
Exec sp_dboption 'dbtemp ', 'single', 'true'
DBCC checkdb ('dbtemp ', repair_allow_data_loss );
DBCC checkdb ('dbtemp ', repair_rebuild );
Exec sp_dboption 'dbtemp ', 'single', 'false'
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/lwlsky/archive/2009/11/02/4757998.aspx