>Sorry, I missread your pseudocode. I expect that it'll faster to get all records at once into SPT cursor and than process them than fetch them one by one. As Tore correctly pointed out, only test can tell wich one will be faster in practice.
No problems. Thanks for your help.