all groups > sql server dts > march 2005 >
You're in the

sql server dts

group:

Data Movement from Prod to Dev



Data Movement from Prod to Dev Ed
3/31/2005 2:51:01 PM
sql server dts: Hi,
I am asked to move all data from one database in Production to Development
everynight.
When I try to use the Import/Export Wizard, it fails because when the data
in Development Server is droped, it will violate the Foreign Key Constraint
because it drops One side of the table first without dropping many side.

What I can think of to achieve that is to script out all the contraints
first and after the DTS migration, add all the contraint scripts back in.
Or
I create a package and look at the ERD to delete the Many side data in
tables first then delete the One side tables and when I do the data
transformation, I will insert the One side first, then Many side.

Which way is better or any better soluction?

Thanks

Re: Data Movement from Prod to Dev Allan Mitchell
4/1/2005 5:41:36 AM
If you are really moving ALL the database then a far simpler and tighter
solution is BACKUP and RESTORE

Allan

[quoted text, click to view]
Re: Data Movement from Prod to Dev Ed
4/1/2005 6:49:01 AM
Alan,
Thanks for your suggestion. How am I able to schedule a job that will
move the backup file from Prod to Dev and restore it from Dev?

Thanks again.

Ed

[quoted text, click to view]
Re: Data Movement from Prod to Dev Allan Mitchell
4/2/2005 5:29:01 AM
This is what I do

Create a BACKUP job on Prod.
Have it backup to a location on the Network or even the Dev server

This is where we can branch into two

Method 1

1. On the dev server have a table that takes the location of the BACKUP
2. On there is a trigger which does your RESTORE (ON INSERT)

Method 2

Have the production job kick off a RESTORE job on the Dev server .


Allan




[quoted text, click to view]
AddThis Social Bookmark Button