Viewing 2 posts - 1 through 2 (of 2 total)
What I've replied with is a traditional loop not cursor at all.
Check this article
[/url]
January 26, 2009 at 5:08 am
#932528
set @count = 0
select quantity from .....
while @count < quantity
begin
set @count = @count + 1
insert .......
end
January 26, 2009 at 3:07 am
#932506