I'd need to create a loop in sqlserver2005 which goes through a xml-input.
Here's what I have so far:
create procedure sp_test_xml @xml_input xml as -- start the loop here select @xml_input.value('(/root/CustomerDescription/@CustID)[2]','int') --this selects only the second row -- end loop GO
------------------- I've been trying to find the answer but just can not find any info about this loop-structure. I quess I could use cursor but don't know the syntax for xml-parameter.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.