Workaround for the msdb database suspect

Source: Internet
Author: User

1. Causes

Computer room power outage, server illegal shutdown, resulting in msdb database was "suspect"

The role of 2.MSDB databases

The MSDB database is used by the SQL Server Agent to dispatch alerts and jobs, and to record operators. For example, we backed up a database and inserted a record in the table Backupfile to record the associated backup information.

3. Implementing the Logic

Since the msdb database does not store particularly important information, it is possible to copy an identical msdbdata.mdf and msdblog.ldf from another machine.

4. Steps to Resolve

A server is a "suspect" server, and B server has the same version of the database software as the a server. My version is SQL SERVER 2000.

Step 1, stop the SQL Server service on the B server, and copy the "Msdbdata.mdf" and "Msdblog.ldf" files.

Step 2, stop the SQL Server service on Server A, and overwrite the two files on the a server with the "Msdbdata.mdf" and "Msdblog.ldf" files copied from the B server. 3. Restart the SQL Server service on the a server.

Step 3, if the msdb database is still suspect, you can execute the following SQL.

Workaround for the msdb database suspect

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.