Solved

Can't restore the master database

Posted on 2004-08-24
1
679 Views
Last Modified: 2008-02-01
Hi..

I try to restore my database but some how I got an error message saying
"Microsoft SQL-DMO(ODBC SQLState: 42000)
RESTORE DATABASE must be used in single user mode when trying to restore the database.RESTORE DATABASE is terminating abnormally."

I'm using OS Win XP Pro..and Ms SQL Server 2000 Developers Edition..
What should i do  to resolve this problem?

Herz
0
Comment
Question by:hernaezia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 8

Accepted Solution

by:
SNilsson earned 250 total points
ID: 11889664

Just like the error say I suppose, set the database in single user mode first.

EXEC sp_dboption 'Master', 'single user', 'TRUE'
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Database maintenance 36 134
Assigning Database Principals to Database Roles 3 39
Problem Backingh Up Transaction Log on Old SQL000 Database 3 40
Estimating my database size 7 48
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question