Wednesday, May 16, 2012

T-SQL: Select node value from xml column

SQL Code:

Column name is wau_xml

SELECT wau_xml.value('(/Document/VersionNo)[1]', 'int') FROM Table


XML in column:

<Document>

<VersionNo>1</VersionNo>

</Document>


12 comments:

  1. All life demands struggle. Those who have everything given to them become lazy, selfish, and insensitive to the real values of life. The very striving and hard work that we so constantly try to avoid is the major building block in the person we are today. See the link below for more info.

    values @
    www.inspgift.com

    ReplyDelete
  2. Hi there, just wanted to tell you, I enjoyed browsing here in your blog site it has lots of good stuff to read about.

    www.joeydavila.net

    ReplyDelete
  3. Hello, I read your blogs on a regular basis. Your humoristic style is awesome, keep it up!

    Fake Oakleys

    ReplyDelete
  4. We all need challenges in our life to keep motivated. I really had a great time scanning and reading your blog site and i was so amazed with your great artwork. I do hope you could inspire more readers. You can also visit my site for some interesting stuff.

    n8fan.net

    www.n8fan.net

    ReplyDelete
  5. Thanks for sharing your article and for giving us the chance to read it. It is very helpful and encouraging. Visit my site too.

    triciajoy.com

    www.triciajoy.com

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete

  11. شركة نقل عفش من الدمام الى الرياض شركة نقل عفش من الدمام الى الرياض
    ارخص شركة نقل عفش بمكة شركة نقل عفش بمكة
    شركة نقل عفش من جدة الى الاردن شركة نقل عفش من جدة الى الاردن
    شركة نقل عفش من الرياض الى مصر شركة نقل عفش من الرياض الى مصر
    شركة نقل عفش بالدمام شركة نقل عفش بالدمام
    شركة نقل عفش بالاحساء شركة نقل عفش بالاحساء
    نقل عفش داخل مكة نقل عفش داخل مكة


    ReplyDelete