fetch_status preventing nested loops

  • i am trying to run a loop statement within another loop statement and the 2 loops are reading similar values from the same table. Because the inner loop is achieving a fetch_status of 0 the other loop is no longer looping. Is there a way of setting the fetch_status or handling nested loops to read from the table another way?

    your help would be greatly appreciated.

  • Firstly, pasting a bit of your code would help with providing a solution.

    Secondly, try assigning the value of @@FETCH_STATUS to a seperate variable for each of the loops.

    Thanks

    Phill Carter

    --------------------
    Colt 45 - the original point and click interface

  • That will do it....

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply