Tricky one. DTS and Strip Tags from csv file

From: Joey D (joey_at_ultraweaver.com)
Date: 08/25/04


Date: Wed, 25 Aug 2004 11:36:59 -0500

At least it is tricky for me. I am using DTS to import a csv file daily into
a table. The only problem is that the csv file that is sent contains a bit
of HTML at the beginning and end of the file.

Example CVS file:

Complete!<br><PRE>123, fish, paste
321, krabby, patty
987, conch, shell<PRE>

I am not sure what I need to do to remove the characters
"Complete!<br><PRE>" at the beginning of the first record and the "<PRE>" at
the end of the last record.

The file is generated and sent automatically. There is no way to get the
file delivered without the unwanted HTML. I can manually remove these tags
but this will be a daily thing and needs to be automated. Any ideas on how
to get rid of the unwanted tags? I am a newbie to SQL let alone DTS. Been
trying to get this worked out for a few days now.

Any help is greatly appreciated.

-- 
Joey Durham
www.ultraweaver.com - Tutorials/Downloads


Relevant Pages

  • Re: Just do it with VBS transform. DTS and Strip Tags from csv file
    ... The only problem is that the csv file that is sent contains a bit ... > file delivered without the unwanted HTML. ... > to get rid of the unwanted tags? ... I am a newbie to SQL let alone DTS. ...
    (microsoft.public.sqlserver.dts)
  • Re: Tricky one. DTS and Strip Tags from csv file
    ... The only problem is that the csv file that is sent contains a bit ... > file delivered without the unwanted HTML. ... > to get rid of the unwanted tags? ... I am a newbie to SQL let alone DTS. ...
    (microsoft.public.sqlserver.dts)
  • Re: Tricky one. DTS and Strip Tags from csv file
    ... In VBScript you can use the FileSystem object to manipulate files, ... The only problem is that the csv file that is sent contains a bit ... > file delivered without the unwanted HTML. ... > to get rid of the unwanted tags? ...
    (microsoft.public.sqlserver.dts)
  • RE: Best Practice
    ... This is the first CSV file I've worked with which does not store one record ... When I append the data from the SQL Source to the CSV Destination, ... explicitly tell the DTS which field is stored on which line? ... I will first read the first filename in the ...
    (microsoft.public.sqlserver.dts)
  • DTS Package - Issues
    ... I have a DTS package that basically does the following: ... the input path to the csv file. ... I'm creating a custom installer that will be used by three customers. ... will be in the client's installation directory. ...
    (microsoft.public.sqlserver.dts)