Inserting a generated order document on the server

Executed on the server, the following SQL command generates an XML Order document from SQL data, and immediately inserts the generated XML document into the column of the order_docs table.

insert into order_docs (ID, order_doc)
 	select “2”,  new xml.order.OrderXml("990704", "123","")