Hi rrjegan17,
I'm starting SQL using sqlservr.exe -c -m so i think it is in single user mode but still get the error. is there a way to check?
Main Topics
Browse All TopicsHi all,
I'm struggling to do a master DB restore from backup. I've done before so not sure why this box is a problem. I've stopped SQL, SQL Agent & Report Server services. Started SQL in single user mode using sqlservr.exe -c -m, opened only query analyzer as sa (no object browser) and run the query:
RESTORE DATABASE master FROM DISK = 'c:\master_db_200907020100
but I still recieve:
Server: Msg 3108, Level 16, State 1, Line 1
RESTORE DATABASE must be used in single user mode when trying to restore the master database.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
I'm certain the database is in single user mode and I've stopped all services that I can possibly think of that may be accessing SQL in some way.
I've also run an sp_who and there are 16 spids, but they are all sa.
Anyone got any ideas? Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi rrjegan17,
Yes that is exactly what I've tried already.
I think that there is something on the server using SQL the second I start it in single user mode. If I do an sp_who2, there are more spid's than i think there should be in single user mode. I've attached a screenshot along with another server I have placed in single user mode that does allow me to restore master.
I've just answered my own question. Something was grabbing SQL, no idea what but MS page shows how to start in single user mode only allowing one application access. In this case query analyser so i can do my restore. The command is sqlservr.exe -m"query analyzer"
The website is:
http://msdn.microsoft.com/
I can't believe I've spent days on this one!! Thanks for your help anyway.
Business Accounts
Answer for Membership
by: rrjegan17Posted on 2009-07-07 at 04:45:07ID: 24793272
Error says that your instance is not in single user mode.
en-us/libr ary/ms1906 79.aspx
Kindly try it again with the steps mentioned below:
http://msdn.microsoft.com/
Hope this helps.