I needed to quickly make an export of Dynamicweb eCommerce orders today. The export was to be made as XML.
One of my colleagues at Bleau made the suggestion, that I use the FOR XML query in SQL Server Management Studio. So I did, and it turns out he was right. Here is the complete SQL:
INNER JOIN EcomOrderLines ON EcomOrderLines.OrderLineOrderID = EcomOrders.OrderID
FOR XML AUTO, ELEMENTS, ROOT(‘orders’)