• In fact the cursor was declared without any option, so I switched it to FAST_FORWARD, just to get a quick fix. I'll try to code it without cursors, also because there's no need for cursors in that context.

    Thank you very much for your help, I'll see in the next days what's happening with these modifications.

    Regards

    Gianluca

    -- Gianluca Sartori