Question : Check if cursor is empty

What's a good way to check if the cursor is empty?
Can I just check a column name in the cursor if it's empty or there is another neat way of doint this?

MS Sql Server 2000

Answer : Check if cursor is empty

Yes, you can reference @@CURSOR_ROWS after opening the cursor.  If it's zero, no rows were found.  Please see "Books Online" for other possible values of @@CURSOR_ROWS and their meanings (especially note that negative values are possible and have a special meaning).
Random Solutions  
 
programming4us programming4us