I liked the script of using a table as an array. But Didn't liked the cursor in it so I rewrote the script so that it uses a memory table.
I tested it in the Query analyzer and this one is indeed faster. So all the people out there yelling that a memory table is faster than a cursor could be right.....
I say could be because the memory table variant has less statements in it.......
2007-10-02 (first published: 2002-06-20)
15,451 reads