• Tee Time (11/16/2012)


    something like this may work for your purpose, but I think that may depend on

    SELECT REPLACE(REPLACE(yourfield, CHAR(13), ''), CHAR(10), '')

    This basically replaces the char with nothing.

    Raymond van Laake (11/16/2012)


    It would work indeed, but I'm hoping to find a better way

    Thx!

    Define "better" because if those are the only two characters you really need to worry about, then you just blew off the absolute best way. 😉

    --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)