dbTalk Databases Forums  

Moving Full database to Empty database

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Moving Full database to Empty database in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Moving Full database to Empty database - 12-24-2005 , 08:00 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


"Roy Goldhammer" <roy (AT) hotmail (DOT) com> wrote

Quote:
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?






Reply With Quote
  #2  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Moving Full database to Empty database - 12-24-2005 , 02:00 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


"Roy Goldhammer" <roy (AT) hotmail (DOT) com> wrote

Quote:
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?
"Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote in message
news:O4pknJJCGHA.1312 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
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


"Roy Goldhammer" <roy (AT) hotmail (DOT) com> wrote in message
news:evVFTJICGHA.2664 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
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?










Reply With Quote
  #3  
Old   
Roy Goldhammer
 
Posts: n/a

Default Moving Full database to Empty database - 12-24-2005 , 04:05 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?




Reply With Quote
  #4  
Old   
Roy Goldhammer
 
Posts: n/a

Default Re: Moving Full database to Empty database - 12-24-2005 , 06:08 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?
"Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote

Quote:
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


"Roy Goldhammer" <roy (AT) hotmail (DOT) com> wrote in message
news:evVFTJICGHA.2664 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
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?








Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.