We have an SQL 2008 R2 database instance running 24/7. I need to make a copy of it that instance and run it as a test database on the same server with no down time or interference with the existing

Posted on 2013-01-08
Last Modified: 2013-01-13
We have an SQL 2008 R2 database instance running 24/7. I need to make a copy of it that instance and run it as a test database on the same server with no down time or interference with the existing database. I want to run them on the same server as separate instances.  Can anyone help me do this without interfering with the existing instance?
Question by:boxer327
LVL 13

Assisted Solution

LIONKING earned 250 total points
ID: 38755168
Do you want to make another SQL Server "Instance" or just copy the database and use it for testing purposes?

If you want to make another SQL Server instance, you will have to run the installer all over again, name your instance and configure it with the same values as the one you have running.
LVL 22

Expert Comment

by:Steve Wales
ID: 38755184
The procedure is pretty simple.

Take a backup of the existing database, then restore it as a new database.

You can do that as a database in a new instance (as noted by LIONKING) or as a database in your existing instance.

Author Comment

ID: 38755983
I want to make a copy of the existing database and run it as a separate instance.
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

LVL 22

Accepted Solution

Steve Wales earned 250 total points
ID: 38756015
Then the above couple of posts will work.

Take a backup of you current database.
Install a new instance on the server.
Restore the backup to the new instance.

LVL 69

Expert Comment

by:Scott Pletcher
ID: 38756161
When you restore the db, be sure that you override the existing file names, otherwise you might damage the original db (SQL is pretty good about preventing you from doing that, but you might be able to force it to happen).
LVL 21

Expert Comment

by:Alpesh Patel
ID: 38758495
Just backup the database and create new for restore a copy as you require. there is no down time to take backup.

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

863 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

18 Experts available now in Live!

Get 1:1 Help Now