• Hugo Kornelis (4/22/2010)


    Do you think you can post a repro script that actually uses this operator? Have you ever seen it used in your code?

    Yes, sometimes I see this operator when I profile and optimize SQL queries. When I wrote that post, I was optimizing a long-running stored procedure, and there even were both lazy and eager index spools in one query. I tried to make a simplified example (the original query contained 3 tables, 1 view, and 2 subqueries), but all what I got was either hash join or table spool 🙂

    Thanks to Paul for posting a simple example!