• Ola L Martins-329921 (4/26/2012)


    The "Don't know" alternative should give you points, right? I mean, if you don't know, then the correct answer is actually "Don't know"... 😉

    Sometimes true wisdom is just realizing what you DON'T know. (And humility follows closely behind.)

    I have never used recursive SPs. I can't think of situation where I might, given the environment in which I am. However, I absolutely love recursive CTE's, even if I could only use them for BOM (bill of materials) explosions. We had a previous implementation that used CURSORS to do them!

    I have also used recursive functions. They are handy for string parsing. I imagine that recursive CTE's would do a bit better performance wise, but I find it easier to write readable/maintainable code when done as a function.

    Thanks to OP for question!

    [font="Verdana"]Please don't go. The drones need you. They look up to you.[/font]
    Connect to me on LinkedIn