<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Comments - SQLServer - Kennydust</title>
  <icon>http://www.kennydust.com/Content/icons/flame.ico</icon>
  <logo>http://www.kennydust.com/Content/icons/flame.png</logo>
  <updated>2010-11-10T23:24:20.283</updated>
  <subtitle type="html">Thoughts from a C# Developer</subtitle>
  <id>http://www.kennydust.com/site.aspx/tags/sqlserver/comments/atom</id>
  <link rel="alternate" type="text/html" hreflang="en" href="/site.aspx/tags/sqlserver/atom"/>
  <link rel="self" type="application/atom+xml" href="http://www.kennydust.com/site.aspx/Tags/SQLServer/Comments/ATOM"/>
  <generator uri="http://oxite.net" version="1.0">Oxite</generator>
  <entry>
    <title type="html">Dancing around with XQuery and SQL Server - Part 1</title>
    <link rel="alternate" type="text/html" href="http://www.kennydust.com/site.aspx/Blog/Dancing-around-with-XQuery-and-SQL-Server-Part-1#c-201011101124202"/>
    <id>http://www.kennydust.com/site.aspx/Blog/Dancing-around-with-XQuery-and-SQL-Server-Part-1#c-201011101124202</id>
    <updated>2010-11-10T23:24:57.737</updated>
    <published>2010-11-10T23:24:20.283</published>
    <author>
      <name>kenny</name>
    </author>
    <content type="html" xml:lang="en">
      
more references.. to grab specific values based on an attribute and an inner xml node

&lt;properties&gt;&lt;item key=&quot;IsFeatured&quot;&gt;&lt;value&gt;1&lt;/value&gt;&lt;/item&gt;&lt;/properties&gt;

where XmlProperties.value('(/properties/item[@key = &quot;IsFeatured&quot;]/value)[1]', 'int' ) = 1
    </content>
  </entry>
  <entry>
    <title type="html">Dancing around with XQuery and SQL Server - Part 1</title>
    <link rel="alternate" type="text/html" href="http://www.kennydust.com/site.aspx/Blog/Dancing-around-with-XQuery-and-SQL-Server-Part-1#c-201011100613317"/>
    <id>http://www.kennydust.com/site.aspx/Blog/Dancing-around-with-XQuery-and-SQL-Server-Part-1#c-201011100613317</id>
    <updated>2010-11-10T06:16:31.33</updated>
    <published>2010-11-10T06:13:31.737</published>
    <author>
      <name>kenny</name>
    </author>
    <content type="html" xml:lang="en">
      for reference.

select *
from User
WHERE [properties].exist('/properties/property[@key = &quot;Session&quot;]') = 'xxxxxx';
    </content>
  </entry>
</feed>

