Groups | Blog | Home
all groups > sql server dts > december 2005 >

sql server dts : Moving Full database to Empty database


Andrew J. Kelly
12/24/2005 9:00:26 AM
You basically have 3 options.

1. Drop the RI, Import the data and then recreate the RI.

2. Script the imports so that they follow Parent Child order.

3. Do a Restore of the full db over top of the Empty DB.

I recommend the 3rd option if you want everything.


--
Andrew J. Kelly SQL MVP


[quoted text, click to view]

Roy Goldhammer
12/24/2005 2:05:16 PM
Hello there

I have database with many relationsips

At the start it is empty and when i'm trying to import to it data. some of
the tables are failed due to key violations

Is there a way to import the data in this cases?


Andrew J. Kelly
12/24/2005 3:00:24 PM
Why do you need to create a whole new db just to upgrade it? Why not simply
alter the existing tables?

--
Andrew J. Kelly SQL MVP


[quoted text, click to view]

Roy Goldhammer
12/24/2005 4:08:29 PM
Whell Andrew

3rd option is impossible, because i usually do this for upgrating vertion,
so the schema is changed

1st option looks the most way. But can i script only the relationships or
script droping of them?
[quoted text, click to view]

AddThis Social Bookmark Button