Hi Dragan
>if everything goes right, you get the results of the first select in cursor crsTemp, and the second in crsTemp1.
This is a novel idea, atlease novel for me. I never knew 2 SQL's can be sent in the same SQLEXEC() and plus it returns with curname with 1, 2 appended to it. This is great. I can't wait to try this out.