Re: Recovering from an updatebatch error with a clone
- From: "damian marquez" <dmarquez34@xxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 00:35:33 -0300
Brian Bushay TeamB <BBushay@xxxxxxxxx> wrote:
> Loadfromfile and Open are incompatible.
> LoadfromFile opens the dataset using the contents of the file.
> Open opens the dataset using records retrieved from the database
> connection. So with the above code you loose all the previous edits
> that you saved with saveTofile because you over write them with the
> records in the database.
Well no I don't lose the data... It is there, only that the edits cannot be
saved.
I looked at the BetterAdodataset.LoadFromFile and it does:
Close;
CommandType := cmdFile;
LockType := ltBatchOptimistic;
CommandText := FileName;
Open;
And Open if it's already open won't do anything... Only idea that I have
left is to create another dataset in memory and copy the data there as
backup
but it's really overkill.
--
Have you seen Marillion's Marbles? Visit www.marillion.com and get in
touch with the most amazing music...
.
- Follow-Ups:
- Re: Recovering from an updatebatch error with a clone - Delphi 7.lnk (0/1)
- From: Brian Bushay TeamB
- Re: Recovering from an updatebatch error with a clone - Delphi 7.lnk (0/1)
- References:
- Recovering from an updatebatch error with a clone
- From: damian marquez
- Re: Recovering from an updatebatch error with a clone
- From: damian marquez
- Re: Recovering from an updatebatch error with a clone
- From: Brian Bushay TeamB
- Re: Recovering from an updatebatch error with a clone
- From: damian marquez
- Re: Recovering from an updatebatch error with a clone
- From: Brian Bushay TeamB
- Recovering from an updatebatch error with a clone
- Prev by Date: Re: Pb while closing ADO query
- Next by Date: Re: Parameter in TADOQuery sometimes failes
- Previous by thread: Re: Recovering from an updatebatch error with a clone
- Next by thread: Re: Recovering from an updatebatch error with a clone - Delphi 7.lnk (0/1)
- Index(es):
Relevant Pages
|