Forum Replies Created

Viewing 10 posts - 1 through 11 (of 11 total)

  • RE: Multi UPDATE Statement dynamicaly whats the best practice ?

    Thank you for the answer.

    What you suggest is what I'm doing today, I would like to forbid this kind of method.

    Do you have another solution to so the same without...

  • RE: Format XML output using FOR XML

    Just amazing ! 😉

    Working exactly how I expect

    You really deserve to be a MVP !!

    I'm still questioning myself about the keywords "OVER" and "PARTITION" its really interesting to do this...

  • RE: Format XML output using FOR XML

    Hello again,

    Thank you again.

    In fact "idx" is not an attribute but a column from the table

    so I replaced

    DENSE_RANK() OVER(ORDER BY data.value('/Document[1]/@idx','int')) AS dr,

    by

    DENSE_RANK() OVER(ORDER BY ID) AS dr,

    and its working...

  • RE: Format XML output using FOR XML

    The data from the table are like this:

    ID: int, PK auto inc

    Data: XML

    data sample in attachment

  • RE: Format XML output using FOR XML

    Hello back 😉

    So about my last reply, I made a mistake when writing back your query and its working but not exactly how I want.

    All the xml content are included...

  • RE: Format XML output using FOR XML

    Re.

    Its not working 🙁

    Please look at the attachment to see the outputs.

  • RE: Format XML output using FOR XML

    Hi Mark

    Thank you for this crazy answer 🙂

    I never used something so complex, in fact never used "WITH" or "DENSE_RANK"

    Let me a few hours to see if its solving...

  • RE: Format XML output using FOR XML

    Hello again,

    I provided in attachmenet a more clear and complet file with my current real situation.

    If you need more informations to understand my problem, please feel free to ask me.

    Thank...

  • RE: Format XML output using FOR XML

    Hi Mark,

    Thanks for this first answer.

    I didn't knew the "root()" function, this is very interesting 🙂

    Your solution is working but it's just answering the half of my problem.

    First point: Is...

  • RE: Format XML output using FOR XML

    it seams like the code were trunk

    please found here as attachment the full question with code 😉

Viewing 10 posts - 1 through 11 (of 11 total)