Extracting XML data to columns during query
- From: "Brian Vallelunga" <brian.vallelunga@xxxxxxxxx>
- Date: 3 Apr 2007 12:16:49 -0700
I'm working with an inherited SQL 2000 database (now moved to 2005)
that stores strings of XML in a text column. I'd like to avoid
changing the schema right now. Each row's XML data looks something
like:
<root><element id='5' name='bob' message='hello' /></root>
The exact attributes in the inner element are unknown, but what I
would like to be able to do is return them as columns in a query such
that I would get:
id name message
------- -------------- --------------
5 bob hello
Any thoughts?
.
- Follow-Ups:
- Re: Extracting XML data to columns during query
- From: Kent Tegels
- RE: Extracting XML data to columns during query
- From: *** Swager
- Re: Extracting XML data to columns during query
- Prev by Date: Re: Calling SQL Native Web Service failed as unauthorized
- Next by Date: RE: Extracting XML data to columns during query
- Previous by thread: Calling SQL Native Web Service failed as unauthorized
- Next by thread: RE: Extracting XML data to columns during query
- Index(es):