I have a xml document as string. I need to insert the data into Master and Detail tables in SQL Server 2008.
I tried OpenXML and I want to use some other way in VB.net. I am using .net 3.5
<Orders>
<Product>
<productID>1</productID>
<productName>Pens</productName>
<ProductDetails>
<productID>1</productID>
<cost>100</cost>
</ProductDetails>
</Product>
<Product>
<productID>2</productID>
<productName>Books</productName>
<ProductDetails>
<productID>2</productID>
<cost>1000</cost>
</ProductDetails>
</Product>
</Orders>
See “Designing and Implementing Semistructured Storage“, and next time, start your search for basic SQL Server information at Books Online.