SSIS package to replace a string inside a text file

Hi I have a SSIS package to load up a text file into a table, recently this package stopped working due to a bad strings in the file. how I can remove those bad strings? the bad strings I'd like to remove off the flat file is <@> Thanks

more ▼

asked Apr 09, 2010 at 02:01 PM in Default

user-1550 (google) gravatar image

user-1550 (google)
11 2 2 3

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

can you give us some more information about the flat file? Is it comma seperated, is there a text qualifier etc.

And where is the package failing? If you can read the file then you might want to try a Derived Column transformation and use the replace expression replace(value,'<@>','').

If it failing to read the file, then you might have to look at fixing it before hand with a script.

more ▼

answered Apr 12, 2010 at 08:40 PM

Daniel Ross gravatar image

Daniel Ross
2.9k 11 13 14

Thanks for your help. I used Derived Column and replace
Apr 16, 2010 at 03:57 PM user-1550 (google)
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Apr 09, 2010 at 02:01 PM

Seen: 2324 times

Last Updated: Apr 09, 2010 at 03:58 PM