Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 

Go Back   XSL - XML - RSS Forums > XML General > SQL and XML

Tags:



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-2008, 12:28 PM
tigriswoods
 
Posts: n/a

Default XML Column Advice for XML Newbie



Hello,

I am new to formal XML and the new XML columns in Sql Server 2005. I have
done some reading on it and have tried to create what I thought was a simple
case but I am struggling to access and modify the data. Basically I need
some help implementing my first xml column please. Here's a sample of what I
would like to store:

<Recommendations>
<Recommendation type="standard">Treatment Required</Recommendation>
<Recommendation type="standard">Therapy Advised</Recommendation>
<Recommendation type="freeform">Test for Diabetes</Recommendation>
</Recommendations>

This is a list of multiple recommendations elements, which have a
Recommendation type attribute, and a value which is the text of the actual
recommendation.
I'd like to be able to query for elements that have an attribute value of
"Freeform".
I'd also like to be able to query for elements that have a value of
"Treatment Required".
I'd like to be able to add (and remove) Recommendations.
I'd like to be able to retrieve these values into an ASP checkboxlist
(array) and also into an ASP bulleted list.

Should be easy, right......? Aaaugh!! Half of my hair is ripped out right
now. So let me start back at the beginning and ask some questions.

1. I'd like to use a schema collection. What should it look like?
2. How should I set the xml column attribute "Is XML Document"

Thanks in advance!

Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Contact Us -|- XSL - XML - RSS Forums -|- Archive -|- Top -|-Rules/Disclaimer-|-Help/Support -|-Advertise
© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
All times are GMT. The time now is 02:05 PM.
Style Developed by Epic Designz