SQL Server restores master database by rebuilding _mssql

Source: Internet
Author: User

SQL Server restores the master database by rebuilding the following details

1. Backup master Database

2. Stop service, delete master data file directly

3. Rebuild Master data file with Setup program

Access to the installation directory under the console.

d:\setup\sqlserver2012>setup/quiet/action=rebuilddatabase/instancename=sqlserver2012/sqlsysadminaccounts= username/sapwd= * * *

4. Single user mode to start SQL Server service, restore with backup files

Single-user mode boot: net start mssql$sqlserver2012/m

Sqlcmd Mode Connection: Sqlcmd-s "ServerName\InstanceName"

If there is no corruption in the master file itself, there is a master backup that requires only step 4 restore Master

5, restart the database service, after the normal access to

 

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.