Solved

Trying to migrate SQL 2005 database

Posted on 2007-11-21
5
155 Views
Last Modified: 2010-04-21
I have an SQL database on a test system, and a duplicate database on a production system.

I now wish to export the test system onto the production system. I am encountering an error stating that the tables already exist on the production system.

This is occuring using both "delete existing tables" & "drop and re-create tables" options.

I am trying to perform this via the SQL Management Studio.
0
Comment
Question by:Paduwan
[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
  • 2
  • 2
5 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20332067
Are you using backup and restore options?
Just remove all the database tables manually and restore the database. Release database must exist (empty) with the same name as the test database
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 20332146
use BACKUP RESTORE method instead of exporting the data.
0
 

Author Comment

by:Paduwan
ID: 20332806
yes that's fair enough but in the future I will be testing changes on the test system, then taking them over to the production system.

Would backup/restore still be the best choice? Is there a way to force a replication?
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 125 total points
ID: 20332830
For a real time replication use Mirroring feature, have a look to this tutorial:
http://www.informit.com/guides/content.aspx?g=sqlserver&seqNum=213&rl=1
0
 

Author Closing Comment

by:Paduwan
ID: 31410500
Thanks for your help everyone. Points to Jaime.
0

Featured Post

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

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

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 …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
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-…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

696 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