Re: Like TClientDataSet.Delta,ADO can only save modified data into stream or file?
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Wed, 09 Aug 2006 20:00:32 -0500
We known,if set TADODataSet.MarshalOptions as 'moMarshalModifiedOnly',ADOAll data is saved to the stream. The information on which records are modified
only send modified data back to DBMS.
But,if savetofile or savetostream can also only save modified data?
is saved so it you reload the data the TadoDataset still tracks the modified
records.
function TDMADOStream.ReadData(ADataSet: TDataSet): OLEVariant;
var
ADOStream:_Stream;
begin
ADOStream:=CoStream.Create;
try
OLEVariant(TADODataSet(ADataSet).Recordset).Save(ADOStream,adPersistADTG);
ADOStream.Position:=0;
Result:=ADOStream.Read(ADOStream.Size);
finally
ADOStream:=nil;
end;
end;
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- Follow-Ups:
- References:
- Like TClientDataSet.Delta,ADO can only save modified data into stream or file?
- From: mustapha.wang
- Like TClientDataSet.Delta,ADO can only save modified data into stream or file?
- Prev by Date: Prepared TADOQuery Question
- Next by Date: Re: Prepared TADOQuery Question
- Previous by thread: Re: Like TClientDataSet.Delta,ADO can only save modified data into stream or file?
- Next by thread: Re: Like TClientDataSet.Delta,ADO can only save modified data into stream or file?
- Index(es):
Relevant Pages
|