471,582 Members | 2,400 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,582 software developers and data experts.

Output results to text with formatting

1
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.

Regards
Ice28
Feb 21 '07 #1
0 2054

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 XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.