• Hi - thank you very mutch for your reply.

    In this case i can change the structure of the table because this is only a staging table.

    This are tables created to do some validations to witch only i will access.

    As to the problem. I need to have everything on the same stored procedure.

    How can i resolve this? does anyone have ideias of how i can resolve my problem?

    thank you,

    Pedro