The Microsoft SQL Server administrator needs to know how to recover
the corrupt master database. The Master Database helps to store the logins and
most importantly, the pointers to the entire database. Without the master the
database you cannot successfully start the SQL server. This process of
recovering the master database is the event of corruption and shows how to rebuild
the master database if necessary.
It is important to have a plan to deal with the corruption
or failure of the master database. This helps you to follow the methodical
approach when disaster strikes the MDF file under pressure.
The restoring of the master dataset is very easy. If you
have a good backup of your master database then you can easily restore back your
MDF files by the following steps:
- By using the SQL Configuration manager, you need to stop the SQL Server instance
- Then need to open a command window
- Then on the command window, start the instance executable in maintenance mode
- Then on the second command window, open the SQLCMD
- Then Restore the master database from within the SQLCMD window
- Using SQL configuration manager, then restart the instance
How to restore the master databaseon a SQL Server cluster?
To restore the master database on the SQL server cluster you
need be in case of disaster when previous backup is required. To restart the
server in single user mode helps to resolve the problem, however the server is available.
In scenarios such as following steps can be followed:
·
The node on which the SQL server is
running you should identify it first.
- Then ALL the SQL server resources should be kept to off-line using the cluster Admin.
- Then using the SQL server node above, from the command prompt, then you need to execute the following statement that helps to start the server: sqlservr.exe -c –m
- Query analyzer can be used in restoring the master database.
- The SQL server can now be quit from the command prompt and the server services can be restarted again using the Cluster admin.
But in case
you don't have the backup file or it has even went through corruption then you
need to repair the corrupt master database and recover its data third party SQL Repair Tool. It is
powerful tool which effectively scans the damaged database file and repairs it
to recover inaccessible objects in MDF and NDF database files. It is capable of
repairing and restoring almost every item from the corrupt database such as tables,
keys, views, stored procedures, triggers, indexes, deleted records etc.
0 comments:
Post a Comment