Solved

Cached updates

Posted on 2001-08-03
4
231 Views
Last Modified: 2010-05-18
Hi

I have a query on a database on another computer.
I first call query.delete to delete a record (with conflicting index values) and then use batchmove to copy a record to the database.
This gives me a unique index error, when both databases are on the same computer there is no error.
Can this be caused by cached updates?
CachedUpdates for the query is false.
Will it help if I use query.refresh applyupdates commitupdates after calling query.delete ?
0
Comment
Question by:sorentop
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
FrodoBeggins earned 100 total points
ID: 6351090
What is your database? Try commiting the transaction (Database.Commit;)
Also try wit the BDE alias parameters (if you use BDE). Try changing the values of SQLQRYMODE and SQLPASSTHRU MODE. And the CACHE-related parameters also.

Rgds,
Frodo
0
 

Author Comment

by:sorentop
ID: 6351174
it is interbase
0
 

Author Comment

by:sorentop
ID: 6357321
It turns out to be something else, but I guess you don't mind that I accept the question anyway
0
 
LVL 2

Expert Comment

by:FrodoBeggins
ID: 6358351
No problem :)
I'm sory, but I'm unfamiliar with interbase. My answer was about Oracle, SQL, etc. Thanks, anyway :)

Rgds,
Frodo
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now