dbTalk Databases Forums  

Stripping a 'TAB' from a text field

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


Discuss Stripping a 'TAB' from a text field in the microsoft.public.sqlserver.dts forum.



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

Default Stripping a 'TAB' from a text field - 03-22-2005 , 05:15 PM






Hello

I'd like to thank everyone who has helped me in that past. You guys have
been great.

I am outputting various fields from a table to a tab delimited text file.
(Thats the vendor requirement). One of those fields is a varchar field that
appears to have a 'tab' buried in the data...at least an extra 'tab' appears
in the out put file for some of the exported data. Is there a way I can
strip this 'tab' either as part of the DTS package - or by just running an
update statement against the database that cleans out the tab before the DTS
package runs?

Thank you.



Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: Stripping a 'TAB' from a text field - 03-22-2005 , 10:01 PM






Maybe try something like:
update YourTable
set YourTextCol = replace(YourTextCol, Char(9), '')

-Sue

On Tue, 22 Mar 2005 17:15:29 -0600, "Steve"
<pezguy (AT) mn (DOT) rr.com> wrote:

Quote:
Hello

I'd like to thank everyone who has helped me in that past. You guys have
been great.

I am outputting various fields from a table to a tab delimited text file.
(Thats the vendor requirement). One of those fields is a varchar field that
appears to have a 'tab' buried in the data...at least an extra 'tab' appears
in the out put file for some of the exported data. Is there a way I can
strip this 'tab' either as part of the DTS package - or by just running an
update statement against the database that cleans out the tab before the DTS
package runs?

Thank you.



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.