>>Wow. Thank you all. What a great response. Naomi, your links provided great information. Borislav, thank you for your dynamic SQL example. I have not used dynamic SQL much, but will definatly look to it more often. Sergey, you are always so helpful, and right on the money. I was able to put your example together with Borislav's (untested) to make it work.
>>
>>My hat's off to all of you. Your assistance and time are very appreciated.
>
>Just be aware that many DBA block Dynamic SQL for security reasons.
Thanks for the heads up. I have been looking more at this code. Does the while loop increment that much faster than a cursor, and assuming it does, why?
Thank You
Rollin Burr
Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.