Solved

Cached updates

Posted on 2001-08-03
4
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

707 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