Handling of SQL database labeled as suspicious/questioning

Source: Internet
Author: User

In the manager, the database is marked as suspicious (in the original version 2000, it seems to be "suspicious"), and no operation can be performed on the database. Use the following SQL:

Db1 indicates the database name.

Code
USE MASTER
GO
SP_CONFIGURE 'Allow updates', 1 RECONFIGURE WITH OVERRIDE
GO
Alter database db1 SET EMERGENCY
GO
Sp_dboption 'db1', 'single user', 'true'
GO
Dbcc checkdb ('db1', 'repair _ ALLOW_DATA_LOSS ')
GO
Alter database db1 SET ONLINE
GO
Sp_configure 'Allow updates', 0 reconfigure with override
GO
Sp_dboption 'db1', 'single user', 'false'
GO

 

 

 

 

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.