Solved

Create Copy of Database using Restore Database Option

Posted on 2007-12-05
6
1,019 Views
Last Modified: 2012-06-21
Question: I would like to create a copy of our Live database for testing purposes. I have been told using the Restore Database is the best option for creating a copy of a database in SQL Server 2000. I am a little nervous because I have not used this option before and I don't want to make any changes to the original database. Could anyone offer the exact steps to take?
Thanks,

Traci
0
Comment
Question by:SasDev
6 Comments
 
LVL 17

Expert Comment

by:Chris Mangus
Comment Utility
Someone didn't give you the full picture.  You would take a backup of your current production database and then restore it to a different, test server.
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
Comment Utility
this page covers more or less all the technical issues:
http://msdn2.microsoft.com/en-us/library/ms190436.aspx

now, if you use the graphical interface, you just have to check out 2 important parts:
* ensure that you specify a different database name than the original (this new database name is not required to exist already...)
* in the advanced tab, ensure you specify file path for the restored files that do not clash with the original or any other database (except the one that you restore over, in case it would exist already).

if you do this via TSQL, this translates into using the WITH REPLACE (to overwrite an existing database) respectively the WITH MOVE keywords (to specify the new file locations)
0
 
LVL 17

Expert Comment

by:pssandhu
Comment Utility
What version of SQL Server are you working on?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
aha.. someone did not read the full question :)  
sql 2000...
0
 
LVL 1

Author Comment

by:SasDev
Comment Utility
SQL Server 2000
0
 
LVL 1

Author Closing Comment

by:SasDev
Comment Utility
Thank you very much angelIII!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

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