Perfect that works as long as it is in a variable. However when I save the xml into a table (in an xml column) I can't retrieve it. What do I need to do to select it from a table? I will also want to select the customer name (first and last) for each AccountService together with the ParentAccountId. How can I do that when there are multiple AccountServices? (I tried playing with Cross Apply, but I can't get it to work.)
Thanks for this solution. Can you explain it or point to a web page that can?
Main Topics
Browse All Topics





by: brejkPosted on 2009-11-03 at 22:29:46ID: 25736906
Try another way (see code snippet).
Select allOpen in new window