When you work with a SQL Server 2005 relational database on a day-to-day basis, there are times when the database, such as the SharePoint site metabase name Sharepoint_config, is not functioning as if the database stopped the database for no reason, resulting in SQL Server 2005 database abnormal interrupt, when again open the database will be found that some database will be marked as "suspicious" (suspect), that is, the database name by adding a yellow exclamation point, then the database can no longer be opened, but the structure of the database and data content are still there.
Workaround:
When this operation fails in the database, you can resolve this method by opening the SQL Query Editor window in the database and running the following command.
1, modify the database for emergency mode
ALTER DATABASE sharepoint_config SET Emergency
2, make the database into a single user mode
ALTER DATABASE sharepoint_config SET single_user
3. Repair Database log Regeneration, this command checks the allocation, structure, logic integrity and all database object errors. When you specify "Repair_allow_data_loss" as the DBCC CHECKDB command parameter, the program checks and repairs the reported errors. However, these fixes can cause some data loss.
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.