?
Solved

How do I replace a SQL 2008 R2 database with a backup of a SQL 2008 R2 database from a different server?

Posted on 2011-10-15
3
Medium Priority
?
279 Views
Last Modified: 2012-06-21
We have a Production Server and Test Server (Windows Server 2008) running SQL 2008 R2.

I would like to replace the Clinical SQL database on the Test Server with a backup of the Clinical SQL database from the Production Server.
What would be the best way to accomplish this task?  Thanks
0
Comment
Question by:PDSWSS
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 2000 total points
ID: 36973544
you have to restor the database with overwrite option

RESTORE DATABASE Test FROM DISK = 'C:\test.BAK'
WITH REPLACE
GO
0
 

Author Comment

by:PDSWSS
ID: 36973672
Thank you very much. Perfect solution.
0
 

Author Closing Comment

by:PDSWSS
ID: 36973675
Thanks again.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

840 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