Generating an order on the server

Designed for the server environment, the following SQL script invokes the constructor of the OrderXml class to generate an XML order from the SQL data:

declare @order xml.order.OrderXml
select @order = 
 	new xml.order.OrderXml('990704', '123','')
insert into order_docs (id, order_doc) values(“3”,
 	@order)