BOL (2005) gives cursor examples which test @@FETCH_STATUS in different ways. I wondered if there is any difference/best practice.
The 3 examples are:
WHILE (@@FETCH_STATUS <> -1)
BEGIN
IF (@@FETCH_STATUS <> -2)
WHILE @@FETCH_STATUS = 0
WHILE (@@FETCH_STATUS <> -1)
Thanks,
Barry