Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create Copy of Database using Restore Database Option

Posted on 2007-12-05
6
Medium Priority
?
1,032 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
ID: 20414932
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 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 20414959
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
ID: 20414961
What version of SQL Server are you working on?
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
LVL 143

Expert Comment

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

Author Comment

by:SasDev
ID: 20414993
SQL Server 2000
0
 
LVL 1

Author Closing Comment

by:SasDev
ID: 31412960
Thank you very much angelIII!
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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

783 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