• Alan.B (7/7/2016)


    Forgive my CLR noobness (I create about 1 CLR/year)...

    You're ahead of me, there. My record has been an average of about -1 per year. That's not a mistake. I've been replacing SQLCLR with T-SQL. 😀 The best replacement, so far, has been for SQLCLR generic audit triggers at work, which were crushing performance. It was taking 4 minutes to update just 4 columns of just 10,000 rows of some 100+ column tables (not my design, for sure). The rewrite got that down to less than 800ms (yeah, I know... I'm slipping :-D) on the widest of the tables.

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