Link to home
Start Free TrialLog in
Avatar of SP_2018 .
SP_2018 .Flag for United States of America

asked on

how to restore master database in single user mode

Hi ,

One of our sql server with sql 2008 r2 standard edition has crashed, will have to do a fresh installation
we have full backup of 2:30 am and transactional backup till 4:30 am
I would like to know how to restore master and msdb database in single user mode.

Please advsie.
Avatar of DcpKing
Flag of United States of America image

For master, see Pinal Dave here.

For msdb, see SQL Tips here.


Avatar of SP_2018 .


i followed those steps but after setting the -m option and restarting the service i gave the restore command with sqlcmd in command prompt . it gives me same error
pls help
Avatar of Anthony Perkins
it gives me same error
You may get more response here, if you tell us what is the error.
To restore the master database, the server must be running in single-user mode. For information on starting in single-user mode, see "How to: Start an Instance of SQL Server (sqlservr.exe)" in Books Online.
Msg 3013, Level 16, State 1, Line 1

This is the error even after bringing the server in the single user mode
The error message I was looking for was
xxx is terminating abnormally.

Is that the error message you are getting?  If so what does the errorlog state is the problem?  Do you have an existing master database ?  If not you will not be able to restore a backup of master.
Avatar of SP_2018 .
SP_2018 .
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The above solution solved my problem