dbTalk Databases Forums  

Data transfer from a single txt file to 3 different tables

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


Discuss Data transfer from a single txt file to 3 different tables in the microsoft.public.sqlserver.dts forum.



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

Default Data transfer from a single txt file to 3 different tables - 03-21-2005 , 09:01 PM






Hello Friends,

I have a data file containing Purchase Orders coming in
from a proprietary ERP system. The file contents can be
divided into 3 parts: Header, Lines and Notes. These 3
parts need to go into three different SQL Server Tables
for my custom application.

Is it possible in DTS to channel data from a single source
text file to three different destination tables ? I had a
look around but could not find anything to achieve this.
Are there any other alternatives I could use if this is
not possible by DTS ?

Thanks & Regards,
Hemil.

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

Default Re: Data transfer from a single txt file to 3 different tables - 03-22-2005 , 02:33 PM






Not really. The thing is DTS likes its metadata and it likes it to be
consistent.

You could read the whole line as a string and then parse the line but
that would probably be costly.

I would look to either get the source to give you 3 file or I would
split the file into 3 yourself.


Allan

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


Quote:
Hello Friends,

I have a data file containing Purchase Orders coming in
from a proprietary ERP system. The file contents can be
divided into 3 parts: Header, Lines and Notes. These 3
parts need to go into three different SQL Server Tables
for my custom application.

Is it possible in DTS to channel data from a single source
text file to three different destination tables ? I had a
look around but could not find anything to achieve this.
Are there any other alternatives I could use if this is
not possible by DTS ?

Thanks & Regards,
Hemil.


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.