Re: Recovering from an updatebatch error with a clone - Delphi 7.lnk (0/1)
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Sun, 30 Oct 2005 20:37:29 -0600
>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.
Yes if CommandType is cmdFile then yes open uses the file.
You have to set command type back to cmdText and command text back to your
original query as well as set you connection to get back to your original state.
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- 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
- Re: Recovering from an updatebatch error with a clone
- From: damian marquez
- Recovering from an updatebatch error with a clone
- Prev by Date: Re: Parameter in TADOQuery sometimes failes
- Next by Date: Re: Accessing an on the fly query for updating
- Previous by thread: Re: Recovering from an updatebatch error with a clone
- Next by thread: Pb while closing ADO query
- Index(es):
Relevant Pages
|