SQL database table repair (lob data node database ID 30, page (), slot 7 does not exist)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.