• jos.moy (12/14/2012)


    Hola,

    No entiendo bien tu pregunta, espero te pueda ayudar esto, no hablo ni escribo bien el ingles

    select

    campo.value('(/Encabezado/Heads_dependiendo_arbol_del_XML)[1]','tipo_dato'')

    from tabla

    y de ahi ya podrias manejar tu fecha a tu gusto, adicional, te recomentaria crear una #temp para mejor manejo.

    Saludos

    Gosh... it would really be nice if I could actually read this. Would you mind replying in English, please?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)