Re: Trouble recreating ADO recordset from XML


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.



Relevant Pages

  • <a href="