Sansalone
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 30 articles for 0.303 sec
I found the mistake - it only showed itself via major errors when CommitRetaining was changed to Commit. There are some 60 threads, each with their own transaction and IBSQL object. They share 2 database connections. The even threads share database1 and the odd threads share database2. BUT, I assign each database object a default transaction. database1 gets the transaction object in thread     

Group: borland.public.delphi.database.interbaseexpress · Group Profile · Search for Sansalone in borland.public.delphi.database.interbaseexpress
Author: Joe Sansalone
Date: Aug 1, 2008 13:51

I use the transaction object for that particular thread which is associated with the IBSQL. Why would it work with CommitRetaining but not Commit? I'll try what you said .... "Craig Stuntz [TeamB]" <craig_stuntz@nospam.please [a.k.a. acm.org]> wrote in message news:48934a9c$1@newsgroups.borland.com... Joe Sansalone wrote: try setting up the statement using IBSQL StartTransaction
Show full article (0.29Kb) · Show article thread
Joe Sansalone wrote: > Should the Commit somehow fail, the next time StartTransaction is > called it could throw an exception, right? Since committing a transaction consists of changing one bit on the TIP it is difficult to imagine how it could fail unless the server crashes or the network connection is lost. > > Should we check if InTransaction before calling StartTransaction? > (especially     

Group: borland.public.delphi.database.interbaseexpress · Group Profile · Search for Sansalone in borland.public.delphi.database.interbaseexpress
Author: Joe Sansalone
Date: Aug 1, 2008 13:45

If there are 3 different SQL updates within a transaction, and the first succeeds, the second fails and the 3rd succeeds ... will a Commit after the 3rd statement change the data to reflect SQL statements 1 and 3? "Craig Stuntz [TeamB]" <craig_stuntz@nospam.please [a.k.a. acm.org]> wrote in message news:489320f6$1@newsgroups.borland.com... Joe Sansalone wrote: So Commit really
Show full article (1.07Kb) · Show article thread
By "inherited code" I meant the code that was left behind by a programmer in my company. The code you (Bill) and Craig gave me was obviously based on correct assumptions and a solid understanding of Interbase. Thanks again! "Joe Sansalone" <joe@project1.ca> wrote in message news:4892765f$1@newsgroups.borland.com... > Thanks Bill. > > I had a feeling rollback cases weren't taken     

Group: borland.public.delphi.database.interbaseexpress · Group Profile · Search for Sansalone in borland.public.delphi.database.interbaseexpress
Author: Joe Sansalone
Date: Aug 1, 2008 10:43

Thanks Bill. I had a feeling rollback cases weren't taken care of. I assumed the code I inherited was based on good assumptions. I was wrong! Joe "Bill Todd [TeamB]" <no@no.com> wrote in message news:48925754$1@newsgroups.borland.com... Joe Sansalone wrote: What will the Commit within the finally do if the SQL updated something that another connection recently changed but
Show full article (0.54Kb) · Show article thread
Joe Sansalone wrote: > What will the Commit within the finally do if the SQL updated > something that another connection recently changed but didn't commit? > In other words, if it can't Commit, should I have something in the > code that does a rollback? The commit in the finally block assumes that you are executing a SELECT statement. If you are executing a statement that changes data then     

Group: borland.public.delphi.database.interbaseexpress · Group Profile · Search for Sansalone in borland.public.delphi.database.interbaseexpress
Author: Bill Todd [TeamB]
Date: Aug 1, 2008 08:21

Thank you all for your help. Joe "Bill Todd [TeamB]" <no@no.com> wrote in message news:4890be06$1@newsgroups.borland.com... Vm|r Vlmez wrote: You should not commit after a select statement. Is this true or false ? It depends. It depends on when ? Connect a dbgrid to a datasource and also connect it to query, transaction and database. Okay now, execute a select and
Show full article (0.51Kb) · Show article thread
Vm|r Vlmez wrote: > You should not commit after a select statement. > > Is this true or false ? It depends. It depends on when ? Connect a > dbgrid to a datasource and also connect it to query, transaction and > database. Okay now, execute a select and then call > Transaction.Commit. This is what I try to avoid Sansalone to do. You > will see an empty grid. You know why. > > I also know     

Group: borland.public.delphi.database.interbaseexpress · Group Profile · Search for Sansalone in borland.public.delphi.database.interbaseexpress
Author: Joe Sansalone
Date: Aug 1, 2008 07:48

Show full article (0.99Kb) · Show article thread
    

Group: borland.public.delphi.database.interbaseexpress · Group Profile · Search for Sansalone in borland.public.delphi.database.interbaseexpress
Author: Joe Sansalone
Date: Jul 31, 2008 20:00

Show full article (2.29Kb) · Show article thread
    

Group: borland.public.delphi.database.interbaseexpress · Group Profile · Search for Sansalone in borland.public.delphi.database.interbaseexpress
Author: Joe Sansalone
Date: Jul 31, 2008 19:35

Show full article (1.89Kb) · Show article thread
    

Group: borland.public.delphi.database.interbaseexpress · Group Profile · Search for Sansalone in borland.public.delphi.database.interbaseexpress
Author: Bill Todd [TeamB]
Date: Jul 31, 2008 17:22

Show full article (1.58Kb) · Show article thread
    

Group: borland.public.delphi.database.interbaseexpress · Group Profile · Search for Sansalone in borland.public.delphi.database.interbaseexpress
Author: Joe Sansalone
Date: Jul 30, 2008 13:30

Show full article (2.09Kb) · Show article thread
    

Group: borland.public.delphi.database.interbaseexpress · Group Profile · Search for Sansalone in borland.public.delphi.database.interbaseexpress
Author: Bill Todd [TeamB]
Date: Jul 30, 2008 12:16

Show full article (1.90Kb) · Show article thread
1 · 2 · 3 · next