dbTalk Databases Forums  

Re: Text file import strategy - DTS newbie question

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


Discuss Re: Text file import strategy - DTS newbie question in the microsoft.public.sqlserver.dts forum.



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

Default Re: Text file import strategy - DTS newbie question - 07-17-2003 , 03:43 PM






Hi Brent,
You need to clean and prepare you file before import to sql.
Inside the pkg you can use ActiveXscript with regular expresions to do it,
here an example.
http://www.4guysfromrolla.com/webtec...ressions.shtml
JFB

"-- Brent --" <bbyrd (AT) online-can (DOT) com> wrote

Quote:
I have an ascii file that has no column delimiters. Fixed-
fields are present but the data is homogeneous over two
lines(separated by CrLf), not one.

Also, the report contains page headers, etc with a CrFF
between each page.

Any DTS strategies would be appreciated.
Currently, I am using a Connection (Text File (Source))
and an ActiveX script within a Transform Data Task.




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.