I have an open cursor, cur, and I want to simply loop through all the records and do some analysis. What is wrong with the following T-SQL taken from a stored procedure?
set @temp = 0
while (@temp IS NOT NULL)
BEGIN
FETCH cur INTO @temp
END
This loop never ends. Why not?
~BenDilts( void );
benbeandogdilts@cs.com
Long-time BASIC game programmer, Internet programmer and C++/DirectX of late.
set @temp = 0
while (@temp IS NOT NULL)
BEGIN
FETCH cur INTO @temp
END
This loop never ends. Why not?
~BenDilts( void );
benbeandogdilts@cs.com
Long-time BASIC game programmer, Internet programmer and C++/DirectX of late.