469,126 Members | 1,277 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,126 developers. It's quick & easy.

Output results to text with formatting

Hi All,

I have a sql server table that i was trying to remove trailing and leading spaces. I have done this using the LTRIM(RTRIM(custname)) , etc from customer table. This gives me back a result set in query analyser i.e ABC agents, 144 Corey street , xxxx , xxx , hp2 ya7. When i then output this to a text file this still shows the spaces using a DTS package.
ABC agents |144 Corey street | xxxx | xxx | hp2 ya7.

Is there any way i can format the text file before, or within the select during execution of code. Any help would be greatly appreciated.Many Thanks in advance.

Feb 21 '07 #1
0 1994

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Lisa | last post: by
7 posts views Thread by SS | last post: by
3 posts views Thread by David Veeneman | last post: by
6 posts views Thread by Glen | last post: by
8 posts views Thread by victor.herasme | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.