• cready27 (1/16/2014)


    I'm guessing the @EndDT for the first code example should have been.

    @EndDT = '2000-01-02 12:34:56.789'

    That gives the same answer as the example.

    Correct. I've submitted a correction. Apparently, I phat phingered the code during my final submittal to the article submittal software.

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