Fixed Length text Output carriage return

  • I have an fixed length text file output created by SQL 2005 SSIS package and the total lenght for each row is 489 byte.

    I need to force a carriage return at each row so that each row aligns.

    How can I do that?

    Thanks,

    QJLL

  • When you create your output flat file connection manager, the creation dialog offers you the choice of fixed length as opposed to delimited or ragged right. I believe that ragged right would take care of the CR/LFs for you.

    By the way, for future use, there is a formum on this site dedicted to SSIS.

  • Lookup STUFF in Books Online... that should do it for you. And, no... not being a smart alec here... there is an SQL Function called "STUFF".

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

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

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