dbTalk Databases Forums  

Exporting from multiple tables

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


Discuss Exporting from multiple tables in the microsoft.public.sqlserver.dts forum.



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

Default Exporting from multiple tables - 08-23-2006 , 02:40 PM






In our application, we would like to export the user data. In the main table,
it is related to many other tables with foreign keys. We have not used DTS
before and would like to see if it can export the data for us. How can we
write a DTS package that will export from the main table, and all related
data from the other tables, into a single XML file that can then be imported
into another database? If this is possible, can someone provide a simple
example that I can build on? Thank you

Reply With Quote
  #2  
Old   
ads
 
Posts: n/a

Default RE: Exporting from multiple tables - 08-28-2006 , 05:10 AM






Yes. you can use DTS to do your task. In the DTS wizard, use the 2nd option
"Use a query to specify the data to transfer." Then input your sql statement
joining several tables.

"Mike Collins" wrote:

Quote:
In our application, we would like to export the user data. In the main table,
it is related to many other tables with foreign keys. We have not used DTS
before and would like to see if it can export the data for us. How can we
write a DTS package that will export from the main table, and all related
data from the other tables, into a single XML file that can then be imported
into another database? If this is possible, can someone provide a simple
example that I can build on? Thank you

Reply With Quote
  #3  
Old   
Mike Collins
 
Posts: n/a

Default RE: Exporting from multiple tables - 08-28-2006 , 09:38 AM



Thank you for the relply, but since I sent this, we have decided to use
another method of exporting and importing data.

"ads" wrote:

Quote:
Yes. you can use DTS to do your task. In the DTS wizard, use the 2nd option
"Use a query to specify the data to transfer." Then input your sql statement
joining several tables.

"Mike Collins" wrote:

In our application, we would like to export the user data. In the main table,
it is related to many other tables with foreign keys. We have not used DTS
before and would like to see if it can export the data for us. How can we
write a DTS package that will export from the main table, and all related
data from the other tables, into a single XML file that can then be imported
into another database? If this is possible, can someone provide a simple
example that I can build on? Thank you

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.