﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / General / SQL Server 7,2000  / Query XML contents In SQL Server 2000 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 24 May 2012 14:20:09 GMT</lastBuildDate><ttl>20</ttl><item><title>Query XML contents In SQL Server 2000</title><link>http://www.sqlservercentral.com/Forums/Topic821998-9-1.aspx</link><description>I am using the SQL Server 2000 as RDBMS.. I am tasked to develop an application which is supposed to handle user's comments/notes on many different web sites. Each site has its own specific data which uniquely identify the notes/comments entered on it. So, i must store that specific data in my database's table. The problem is that the site specific data is undefined. It could be anything.So, i am not aware about the structure of the specific data. I decided to keep the site specific data into XML. So, I developed a table like below, NoteID INTNote    VARCHAR(1000)ApplicationID VARCHAR(10)UserID VARCHAR(10)CreateDate DATETIMEModifiedDate DATETIMEParameters VARCHAR(1000) Parameters column actually stores the site specific data in form of XML e.g. '&amp;lt;parameters&amp;gt;&amp;lt;profileid&amp;gt;1796&amp;lt;/profileid&amp;gt;&amp;lt;state&amp;gt;page2&amp;lt;/state&amp;gt;&amp;lt;/parameters&amp;gt;'........ I would pass a parameter to my stored procedure from my application. This parameter enloses the search criteria for the site specific data in form of XML too. For example, I would pass '&amp;lt;parameters&amp;gt;&amp;lt;profileid&amp;gt;0001&amp;lt;/profileid&amp;gt;&amp;lt;state&amp;gt;unknown&amp;lt;/state&amp;gt;&amp;lt;/parameters&amp;gt;' . Rest of the parameters like ApplicationID would pass in a standard way like we do in normal cases. :) So, enough explanation i think, lets come to the point, How could i query the specific element e.g. profileid, within stored procedure by following the above architecture so that application must be able to render the correct notes/comments on the client?  Any help would be highly appreciated.Thanks.</description><pubDate>Thu, 19 Nov 2009 15:48:03 GMT</pubDate><dc:creator>Zeeshan Haider</dc:creator></item></channel></rss>
