I actually have to send an XML as a parameter to a SQL stored procedure but I am using SQL 2000 and it does not have XML datatype. The XML is like below
abc is the product code and 3 is the quantity. I need to insert product code and quantity in different columns of a table. I think I have two options
(1) Send the XML as varchar(8000) and do the split in the stored procedure.
This seems risky if the XML is more than 8000 characters.
(2) Do the split in my VB.NET application tht calls the stored procedure. Insert product code and quantity in separate arrays and send the arrays to stored procedure as parameters.
Which is the better option? Or is there any other way of doing it? Please advise and let me know how I can do it. Thanks!