dbTalk Databases Forums  

Importing multi-line record from text file

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


Discuss Importing multi-line record from text file in the microsoft.public.sqlserver.dts forum.



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

Default Importing multi-line record from text file - 10-30-2006 , 06:47 AM






Hi all, I've searched this forum quite a bit and haven't found anything
to assist me in what I am trying to do.

We are FTP'd at various times 2 files to be 'imported' into a SQL
databse. The .txt file contains the record that actually needs to be
entered into the table the other (a .pdf) just needs to be copied to a
sub-directory on the server (which is not a problem).

Here is a sample of one of the text files;

A 1141173132 9518453813 2006-08-07 CA
VOL ADJ

The first line is 5 space delimited entries, the second line is a
single entry (up to 80 characters). I beleive their is a CRLF between
the lines.

My question is what is the best way to import the record out of the
..txt file?

Thanks you in advance for any help in this matter.


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

Default Re: Importing multi-line record from text file - 10-31-2006 , 04:58 AM






One thing I forgot to add is I want to be able to import these
automatically. That is have a 'job' of some kind that runs hourly (or
whatever) and imports any of the files that are on the FTP server.


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.