Board index » delphi » Cached Updates TQuery Problem with Modify/Delete (within transaction)
Gowri Subramanian
![]() Delphi Developer |
Sat, 06 Nov 1999 03:00:00 GMT
|
Gowri Subramanian
![]() Delphi Developer |
Sat, 06 Nov 1999 03:00:00 GMT
Cached Updates TQuery Problem with Modify/Delete (within transaction)Hi Everybody: I am having a major issue with the error "Update Failed" when I try In order to work around this, I am using TTables which is enormously Is this a bug in the BDE? Is there anyway to fix this or does anybody Gowri |
Mike Fordyc
![]() Delphi Developer |
Sun, 07 Nov 1999 03:00:00 GMT
Re:Cached Updates TQuery Problem with Modify/Delete (within transaction)Gowri As far as I can remember the problem was in the OnUpdateRecord event of Regards QuoteGowri Subramanian wrote: |
Jonathan Kimbe
![]() Delphi Developer |
Sun, 07 Nov 1999 03:00:00 GMT
Re:Cached Updates TQuery Problem with Modify/Delete (within transaction)QuoteGowri Subramanian wrote: "DataBase1.ApplyUpdates([Query1])". Cached updates are updates applied locally to your hard drive until you apply them. If a lot of updates occur on the table you are caching then contention could be a problem. Otherwise cached updates are cool! I just don't know why you want to have a transaction running first. ;-) Jonathan |
Dave Krajc
![]() Delphi Developer |
Sun, 07 Nov 1999 03:00:00 GMT
Re:Cached Updates TQuery Problem with Modify/Delete (within transaction)Is it ok if you don't use cached updates?? -D In article <338232F5.34DF3...@aspiresys.com>, go...@aspiresys.com says... Quote
Dave Krajcar, Alternative Solutions rai...@pacifier.com |
Hermann Ragalle
![]() Delphi Developer |
Sun, 07 Nov 1999 03:00:00 GMT
Re:Cached Updates TQuery Problem with Modify/Delete (within transaction)QuoteGowri Subramanian wrote: you can do something like this: database1.starttransaction; In order for this to work you have to do the following: 1. on your TQuery set property CachedUpdate to true I also used this with more than one query within the same transaction. The only problem I have is that Delphi seems not to be able to Any Help on this would be much appreciated. Hermann |
Gowri Subramania
![]() Delphi Developer |
Sun, 07 Nov 1999 03:00:00 GMT
Re:Cached Updates TQuery Problem with Modify/Delete (within transaction)QuoteGowri Subramanian wrote: It actually turned out that the problem was with using CHAR(20) in Since Oracle stores OLD_PAT_NUM as 'A-R ' with the Why I pointed to Transactions as the problem is just one of those Again, thanks for the help. Gowri Subramanian |
cayen
![]() Delphi Developer |
Mon, 08 Nov 1999 03:00:00 GMT
Re:Cached Updates TQuery Problem with Modify/Delete (within transaction)For god's sake, ALWAYS use TQueries vs. TTables in a C/S environment as with kgr...@acxiom.com Regards, cayenne QuoteIn article <338232F5.34DF3...@aspiresys.com>, go...@aspiresys.com wrote: ..'cause I did my time in hell... Wasn't looking too good, but I was feeling really well!!" -Mick and Keith: Some Girls "I will walk before they make me run" Come visit my website at: http://www.cei.net/~cayenne/index.html |
Gowri Subramania
![]() Delphi Developer |
Tue, 09 Nov 1999 03:00:00 GMT
Re:Cached Updates TQuery Problem with Modify/Delete (within transaction)QuoteHermann Ragaller wrote: I am faced with the same problem as above ....... Just like a CHAR Does anybody know if there are any flags to set in SQLLinks (or BDE) to Gowri |
1. How to use cached updates within transactions for SQL2000
2. Cached Updates for TQuery problem...
3. Cached Update problem with TQuery
4. Problem with Apply Cache updates on TQuery
5. Tricky transaction problem: Catching EDatabaseError from one of several Post within a transaction
6. TQuery- How to update WITHOUT using cached updates?
7. Updating a TQuery or TwwQuery with cached updates
8. Help: Cached Updates modified or updatespending???
9. Latest BDE 5.01 calls INSERT instead of MODIFY with cached updates