You are here: Re: Xquery Help SqlServer2005 « MsSQL Server « IT news, forums, messages
Re: Xquery Help SqlServer2005

Posted by CK on 11/27/06 19:23

Thanks! I came up with this and it works.


SELECT DeliveryList.value('declare namespace
df="http://schemas.adventure-works.com/DeliverySchedule";
(/df:DeliveryList/df:Delivery/df:Address)[1]','nvarchar(100)')
DeliveryAddress
FROM Sales.DeliverySchedule


<markc600@hotmail.com> wrote in message
news:1164233567.073470.233360@m73g2000cwd.googlegroups.com...
> This may help
>
>
> SELECT n.value('.','nvarchar(100)') AS DeliveryAddress
> FROM Sales
> CROSS APPLY DeliverySchedule.nodes('declare default element namespace
> "http://schemas.adventure-works.com/DeliverySchedule";
> /DeliveryList/Delivery[1]/Address') D(n)
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация