Question : Create Copy of Database using Restore Database Option

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

Answer : Create Copy of Database using Restore Database Option

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)
Random Solutions  
 
programming4us programming4us