PRB: Retrieving very large XML Documents from SQL Server 2000 by using ReadText method of ADO stream object may be slow
Mar.10, 2011 in
Uncategorized
Symptoms
Queries that result in a large amount of XML data being returned through the ReadText method of the ActiveX Data Object (ADO) Stream object may take a great deal of time to execute; if this is done in a COM+ component that is invoked from an ASP page, the user’s session may time out.
Resolution
ADO converts Stream object data from UTF-8 encoding to Unicode; the frequent memory reallocation involved in conversion of such a large quantity of data at once is quite time-consuming.

Leave a Reply