Re: Trouble recreating ADO recordset from XML
- From: "Mark J. McGinty" <mmcginty@xxxxxxxxxxxxxxx>
- Date: Tue, 2 Oct 2021 03:56:53 -0700
If your code runs in IE's process space, you should be aware of this KB
article:
http://support.microsoft.com/kb/240797
In a nutshell, ADODB.Stream got the "kill bit" in some security patch a few
years ago. A viable work-around object is MSXML.DOMDocument, which (like
ADODB.Stream) exposes an IStream, and works as both a destination for the
Save function, and a source for the Open function.
-Mark
<muybluie@xxxxxxxxxxx> wrote in message
news:1191259911.939764.4370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
Sorry - hope this clarifies.
I use rst->Save to persist the data into a _Stream object. I then
send the stream over COM.
On the other side, I take the stream received, and use
_Stream::WriteText in order to take the buffer received over COM and
write it into the new stream.
Finally, I use Recordset::Open with the stream, an empty connection
(retrieved from the GetActiveConnection method of the recordset
pointer, which should be an empty connection), adOpenDynamic for
cursor type, adLockbatchOptimistic for the lock tyoe, and adCmdFile as
an option.
This works on most machines, but doesn't on a certain group.
The exception I get when trying to look in the recordset has no
description (the string seems to be empty), and the HRESULT is S_OK,
making debugging this all the more difficult.
Thanks,
Eyal
.
- References:
- Trouble recreating ADO recordset from XML
- From: muybluie
- Re: Trouble recreating ADO recordset from XML
- From: Ralph
- Re: Trouble recreating ADO recordset from XML
- From: muybluie
- Trouble recreating ADO recordset from XML
- Prev by Date: Re: Retrieving a BigInt out parameter from a Stored Procedure
- Next by Date: Re: Trouble recreating ADO recordset from XML
- Previous by thread: Re: Trouble recreating ADO recordset from XML
- Next by thread: Re: Trouble recreating ADO recordset from XML</st