Restoring the SQL Server System library

Source: Internet
Author: User

Restoring the SQL Server System library

Total three system libraries to restore, restore sequence: Master>msdb>model

    1. Restore Master

(1). After you add "-M" to the startup parameter, database service properties, database Configuration Manager, restart the SQL service and the database enters single-user mode.

(2). Open the Database administration tool

(3). Pop Up the Connection service window and click "Cancel"

(4). Click "New Query", then log in as Windows, the user name must be administrator

(5). Restore the Master System library by executing a RESTORE statement inside the window

Method Two: The way the Command window operates:

  2. Restore msdb

(1). Cancel the single-user mode, delete "-M" After you restart the SQL service, stop the SQL Agent service

(2). Open SSMs window, log in with Administrator account, execute RESTORE statement

(3). Start the SQL Server Agent service to see the jobs

Method Two: How to operate the command window (be sure to stop the SQL Agent service first)

3. Restore model (general model changes little, no need to restore)

Yang Zhengjiang June 20, 2017

I small white, if there is the wrong place, but also hope you point out!

Original path: http://blog.csdn.net/kk185800961/article/details/41920923

Restoring the SQL Server System library

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.