What should I do if the SQL Server 2008 database is marked as "suspicious"?

Source: Internet
Author: User
Tags microsoft sql server mssqlserver management studio microsoft sql server management studio sql server management sql server management studio

The simplest way is

1: Create a new database with the same path name and files.

2. Disable the SQL Server service;

3: COPY the source file;

4: enable the SQL Server Service to solve the problem.

If the above method cannot be solved, we can refer to the following method.

1. Change the database to emergency mode.

The code is as follows: Copy code

Alter database Netshield SET EMERGENCY

2. Change database to single-user mode

The code is as follows: Copy code

Alter database Netshield SET SINGLE_USER

Run Again

The code is as follows: Copy code

DBCC CheckDB (Sharepoint_Config, REPAIR_ALLOW_DATA_LOSS)

If a warning is displayed after the fix: the database 'sharepoint _ config' log has been regenerated. Transaction consistency is lost. The RESTORE chain is disconnected, and the server no longer has the context of the previous log files. Therefore, you need to understand their content. Dbcc checkdb should be run to verify physical consistency. The database is already in dbo-only mode. When preparing to make the database available, you need to reset the database option and delete all redundant log files.
"The error can be further viewed.


4. Re-open Microsoft SQL Server Management Studio to change the database back to multi-user mode.

The code is as follows: Copy code
 
Alter database into point_config SET MULTI_USER

5. Start-> Run-> enter cmd-> open the doscommand window, and enter the following command to restart the database service.

The code is as follows: Copy code
Net stop mssqlserver -- stop the service
Net start mssqlserver -- start the service
Related Article

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.