|
Hi
Taco, You
could create a stored proc which accepts a XML string
and parses it into a temp table. Exec sp_xml_preparedocument @XmlHandle
Output, @XMLparse Insert
Into @MyTable Select CoverTypeID, ItemSQ, SituationID, ItemDescription, CoverAmount, CoverRate,CoverPremium,
CoverAdd1, CoverAdd2, CoverAdd3 From OpenXML ( @XmlHandle, '/cover/covertype/item',1 )
With ( CoverTypeID int '../@id',
ItemSQ int '@id', SituationID int '@situationID',
ItemDescription
varchar(100)
'@description', CoverAmount money '@amount', CoverRate money '@rate', CoverPremium money '@premium', CoverAdd1 real
'@CoverAdd1', CoverAdd2 real
'@CoverAdd2', CoverAdd3 real '@CoverAdd3' ) -----Original Message----- I pass an XML document to MS SQL, I then parse it
with sp_xml_preparedocument, I now have a handle to the document, is it
possible to use XPath or something to do something like SELECT * FROM tbl WHERE firstname = @search/firstname
I have been able to work with this xml document and
insert it into the db as Which works like a dream, but what about some fancier
stuff like the above????? Anyone, since you are all so anxious to make some
noise?...
You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
|
Title: [OT] XPath in MS SQL
- [cfaussie] RE: [OT] XPath in MS SQL Taco Fleur
- [cfaussie] RE: [OT] XPath in MS SQL Theo Galanakis
- [cfaussie] RE: [OT] XPath in MS SQL Taco Fleur
