Simple TADOQuery is not live
From: Andrew (someone_at_nospam.com)
Date: 05/25/04
- Next message: Kevin Noon: "Parameter not working with Order By"
- Previous message: Andrew: "Re: ADO slower than BDE"
- Next in thread: Del Murray: "Re: Simple TADOQuery is not live"
- Reply: Del Murray: "Re: Simple TADOQuery is not live"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 25 May 2004 10:22:31 +0100
I am in the process of moving from DAO (using OpusDirectAccess) to ADO using
ADOExpress using Delphi 7.
Take the following situation:
1. Open a simple query, just select * from table where code = .....
2. Someone else modifies this record.
3. Do query.Edit.
With DAO when doing the Edit I get the latest data in the record. The data
that was written in step 2.
With ADO (server side cursor) when doing the Edit I just get the original
data from step 1 !! Surely this is not a "live" query just an updateable
historic query. In a multi user situation this is useless.
I can make this work by doing a .Refresh just before the .Edit but what is
the refresh actually doing ? Is it just opening the query again ? If so
this will be very slow especially as this could be in a loop posting
hundreds of accounting transactions.
Are there any settings I need to alter to make it work correctly like DAO ?
Can anyone recommend a good book that covers Delphi, ADO and this multiuser
situation well ?
Thanks
- Next message: Kevin Noon: "Parameter not working with Order By"
- Previous message: Andrew: "Re: ADO slower than BDE"
- Next in thread: Del Murray: "Re: Simple TADOQuery is not live"
- Reply: Del Murray: "Re: Simple TADOQuery is not live"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|