Solved

Restore master database

Posted on 2008-10-03
5
169 Views
Last Modified: 2012-05-05
I need to restore the master database to a new server. The file structure is completely different, so I'll also need it to move the current ldf and mdf files. I have the server in single user mode and do not know how to query the server since i cannot open up MSSMS and do a new query, without it complaining about single user mode. Is there an OSQL statement or how else would this be done?
0
Comment
Question by:josgan
  • 2
  • 2
5 Comments
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 22636867
0
 

Author Comment

by:josgan
ID: 22638131
I need to restore from a different database server. Right now i'm getting "the backup set holds a backup of a database other than the existing 'master'database
0
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 500 total points
ID: 22638179
That will not work.  Your database IDs will be wrong, your users will be wrong.

What are you attempting to accomplish by copying master anyway?
0
 

Author Comment

by:josgan
ID: 22638199
I wanted to copy over all the database permissions and other information some programs store in the master instead of in their own databases.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now