Solved

Copy database and rename in SQL 2008

Posted on 2013-06-23
3
298 Views
Last Modified: 2013-06-24
I have a database named CAPRegisters.  I would like to create a copy of this database with all the structure and data and rename the new database as CAPRegisters2012.

How can I do this?
0
Comment
Question by:al4629740
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
didnthaveaname earned 500 total points
ID: 39270160
I had a post to a question about migrating from sql server '05 to '08 R2.  While the situation for you is different, the options are the same. Take a look here: http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SQL_Server_2008/Q_28121746.html#a39148501 - you would just have a target db that is named why you want instead of the same as the source db. In your case, a backup/restore is probably going to be the simplest method.  Hope that helps!
0
 

Author Comment

by:al4629740
ID: 39270183
Should I backup the file first and then restore from device?

Or should I just restore direct from database?
0
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 39270314
Just Restore Database with Different name and Source is DAtabase not Backup file

OR

Copy database option is also there.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

726 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