Solved

Databases dupliacate it

Posted on 2009-06-29
5
174 Views
Last Modified: 2012-05-07
hello I have to duplicate a database with a different name in MS 2005.

How can I do it in a easy way/

thanks,
0
Comment
Question by:Romacali
  • 2
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
PIERCGG earned 250 total points
ID: 24738943
back it up and then restore it under a different name
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 24738959
i agree with piercgg....
0
 

Author Comment

by:Romacali
ID: 24739052
I backup using SQL Server Enterprise manager all task backup.. the restore there is no option to restore with a new name. How can I restore it under a different name?
0
 
LVL 60

Assisted Solution

by:chapmandew
chapmandew earned 250 total points
ID: 24739140
there should be a 2nd tab where you specify the new name....or you can just do it through tsql

restore database newdatabasename
from disk = 'c:\backupfile.bak'
with move 'DatabaseName_Data' to 'c:\newfolder\databasename_data.mdf',
move 'DatabaseName_Log' to 'c:\newfolder\databasename_log.ldf'
0
 
LVL 6

Expert Comment

by:PIERCGG
ID: 24739268
If you use the SQL Server Enterprise manager you can actually TYPE the new name in the field that says: "To Database:"   You don't have to use the drop-down list if you don't want to.  You can just type in any name you want.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

12 Experts available now in Live!

Get 1:1 Help Now