Groups | Blog | Home
all groups > sql server programming > november 2006 >

sql server programming : How to Parse XML in a stored procedure


Charlie NO[at]SPAM CBFC
11/25/2006 8:44:19 PM
Hi:

I would like my stored proc to accept an XML document as a parameter. I
know I can do this with new xml data type, but once I have it stored to a
local variable, what is best way to parse it so can insert the xml data into
tables.

Thanks,
Charlie

Uri Dimant
11/26/2006 9:23:41 AM
Hi
http://msdn2.microsoft.com/en-us/library/ms171806.aspx --LOAD XML Data
SQLXML4.0



[quoted text, click to view]

Stefan Delmarco
11/26/2006 10:44:18 PM
Hello Charlie,

From your brief description it sounds like you just want to work with the
XML instance. In that case you're probably looking for XQuery. Start here:
http://msdn2.microsoft.com/en-us/library/ms189075.aspx.

Cheers,
Stefan Delmarco

http://www.fotia.co.uk

[quoted text, click to view]

AddThis Social Bookmark Button