• Nice question to point out the difference between temp table and table variable, but a little more explanation would be helpful (such as a link to a BOL article).

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP