• Great article (although I am a little late getting to read it)!

    A question that I have is... Is there a performance reason to use or not use a TVF (by this I mean one that uses CREATE FUNCTION versus a correlated subquery). I can see business cases for both as well as personal preference, but I was curious about performance.

    Also, you spoke briefly about multi-statement functions, but I am still not 100% clear on this. Does this mean a function that uses CREATE FUNCTION that contains multiple statements in it?

    Just trying to find out more of an answer about "functions" here versus the subquery route.

    Thanks,

    Jared

    Jared
    CE - Microsoft