Removing those extra spaces when exporting to Text File

  • I must be thick or just not had enough coffee!

    I need to remove the extra spaces after a field when exporting data to a Text File.

    So ..

    "Mark", "Letheren"

    and NOT ..

    "Mark ", "Letheren "

    TIA

  • ltrim or rtrim strips spaces L eft or R ight of the field

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • Thank you for the answer .. there isn't a little check box somewhere that says "Truncate"?

    I have 270 fields to export ....

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply