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 11-06-2008, 06:58 PM
Martin Honnen
 
Posts: n/a

Default Re: Return elemenst from table with xml column



LPJ wrote:

> But this is a table column...i have to put this table column in a variable ?


No, that was just a small but complete and working example. Of course
you can use e.g.


WITH XMLNAMESPACES (DEFAULT
'http://schemas.microsoft.com/powershell/2004/04')
SELECT valores.value('(/Objs/Obj/Props/S[@N = "MachineName"])[1]',
'nvarchar(20)') AS MachineName
FROM diario.eventlog;

assuming your table is diario.eventlog and the XML column is named valores.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
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 11:59 AM.
Style Developed by Epic Designz