• Hello Micky

    The purpose for using a Cursor is because i need to run an Update not for one "referencia" = Article, but for more and less 170000, and for each one the number of "tam" could be different like 34,35,36,37,38,39 or for another one ; 32,33,34,35 and so on....

    Note : for testing my cursor the WHERE condition have only one referencia.

    I think it is possible to alter my cursor to make an IF condition, ok i not doing this right, but if you can explain how to do this i will be grateful.

    I hope you can understand what i pretend.

    Many thanks for your reply,

    Luis Santos