Connecting Tech Pros Worldwide Forums | Help | Site Map

Output results to text with formatting

Newbie
 
Join Date: Feb 2007
Posts: 1
#1: Feb 21 '07
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

Reply