Basically I want to send a block of xml as a parameter to my ms sql 2005 db, which gets parsed and inserts row data.
I’ve seen plenty of examples of storing xml in the database, or retrieving table data as xml, but no examples where xml is used to insert tabular data.
I have a method in c# which calls my stored proc in a loop to insert the data, but i’m hoping I can format the data into xml and insert it all in one call.
Take a look at this example:
This would get your the results:
If you provide your XML I can provide more info.
Shamelessly stolen from here:
http://msdn.microsoft.com/en-us/library/aa276847%28SQL.80%29.aspx