Quickly exporting Dynamicweb ecommerce orders as XML

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:

SELECT *
FROM EcomOrders
INNER JOIN EcomOrderLines ON EcomOrderLines.OrderLineOrderID = EcomOrders.OrderID
FOR XML AUTO, ELEMENTS, ROOT(‘orders’)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s