• ChrisM@Work (6/18/2013)


    sagesmith (6/18/2013)


    Please post the times each approach takes, this is the only basis for a conclusion. As others have already mentioned, in many scenarios the cursor far outperforms the recursive cte.

    Over to you then. Sample data setup is a page or two back. I've compared iTally vs rCTE here:

    http://www.sqlservercentral.com/Forums/FindPost1464526.aspx

    Feel free to write your fastest cursor-based solution 😉

    😀 That was really funny.

    But, I think( and truly hope ) it was a typo by the poster when he said "cursor far outperforms the recursive cte".

    If in case he really meant it, even I would love to be enlightened 🙂


    Kingston Dhasian

    How to post data/code on a forum to get the best help - Jeff Moden
    http://www.sqlservercentral.com/articles/Best+Practices/61537/