• That's great news. I'm short of time right now, but I'll be back later to have a closer look (unless anyone else wants to chip in). In the meantime, here's a couple of links to my APPLY article, in case you haven't seen it before:

    http://www.sqlservercentral.com/articles/APPLY/69953/ (part one)

    http://www.sqlservercentral.com/articles/APPLY/69954/ (part two)