dbTalk Databases Forums  

copy db objects using import export wizard

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


Discuss copy db objects using import export wizard in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hari
 
Posts: n/a

Default copy db objects using import export wizard - 12-08-2004 , 11:55 PM






Hi all

i want to copy a set of tables from one database to another. Say i have two
tables products and categories. products is referring to categories through a
foreign key. i want to copy only products to another databse. i want to copy
the products table along with the primary key and not with the foreign key.
how to do that using dts

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: copy db objects using import export wizard - 12-09-2004 , 01:43 PM






You could use the copy SQL Server objects task. Make sure on the options button down the button then you ask to take constraints
etc.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Hari" <Hari (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi all

i want to copy a set of tables from one database to another. Say i have two
tables products and categories. products is referring to categories through a
foreign key. i want to copy only products to another databse. i want to copy
the products table along with the primary key and not with the foreign key.
how to do that using dts



Reply With Quote
  #3  
Old   
Hari
 
Posts: n/a

Default Re: copy db objects using import export wizard - 12-09-2004 , 08:39 PM



Hi allen.

I think you are talking about the "copy primary key and foreign key " check
box in the options button. I knoe that. But the problem is it will copy both
the primary key and foreign key . i want to copy only the primary key not the
foreign key as i am not copying the parent table.

"Allan Mitchell" wrote:

Quote:
You could use the copy SQL Server objects task. Make sure on the options button down the button then you ask to take constraints
etc.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Hari" <Hari (AT) discussions (DOT) microsoft.com> wrote

Hi all

i want to copy a set of tables from one database to another. Say i have two
tables products and categories. products is referring to categories through a
foreign key. i want to copy only products to another databse. i want to copy
the products table along with the primary key and not with the foreign key.
how to do that using dts




Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: copy db objects using import export wizard - 12-10-2004 , 12:08 AM



Then you will need to script things out and apply the constraints post exporting the data. As you can see the options in this task
are not flexible enough for your needs.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Hari" <Hari (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi allen.

I think you are talking about the "copy primary key and foreign key " check
box in the options button. I knoe that. But the problem is it will copy both
the primary key and foreign key . i want to copy only the primary key not the
foreign key as i am not copying the parent table.

"Allan Mitchell" wrote:

You could use the copy SQL Server objects task. Make sure on the options button down the button then you ask to take constraints
etc.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Hari" <Hari (AT) discussions (DOT) microsoft.com> wrote

Hi all

i want to copy a set of tables from one database to another. Say i have two
tables products and categories. products is referring to categories through a
foreign key. i want to copy only products to another databse. i want to copy
the products table along with the primary key and not with the foreign key.
how to do that using dts






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.