Solved

Copy database and rename in SQL 2008

Posted on 2013-06-23
3
303 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

734 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