Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need your response urgently:

Status
Not open for further replies.

HenryMonster

Programmer
Feb 21, 2002
74
0
0
US
Hi All,

Need your help urgently !!!

I need to clone a database (mydb_prod) on the same
MS SQL server under a different name (say mydb_test).

We do not have a luxury of another machine at the time.

THANK YOU VERY MUCH IN ADVANCE !
 
Backup the database, and then restore it under a different name. Or, if you only need the schema, just script the database and rename it when you run the script in Query Analyzer.

Hope This Helps!

Ecobb
- I hate computers!
 
If you do the restore on the same server -
Make sure you restore the Log and Data file under a differnet name (then your source db files that is). You can access this info under the options tab of the restore window.

thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top