I agree with Joe, do your transform at the server-side.
For info you can retrieve the XML from SQL Server directly into an XML DOM object, there's no need to go via an ADO Stream. Instead of this code:
objStream.Open
objComm.Properties("Output Stream").Value = objStream
objComm.Execute , , 1024 'adExecuteStream = 1024
objStream.Position = 0
objXML.LoadXML("<?xml version='1.0'?><?xml-stylesheet type='text/xsl' href='prodtest.xsl'?><My_Products>" & objStream.ReadText & "</My_Products>")
You would need:
objComm.Properties("Output Stream").Value = objXML
objComm.Properties("XML Root") = "My_Products"
objComm.Execute , , 1024 'adExecuteStream = 1024
hth
Phil
|