Article View: borland.public.cppbuilder.database.ado
Article #2610Re: Level of transaction support
From: Edward Diener
Date: Wed, 23 Apr 2003 17:31
Date: Wed, 23 Apr 2003 17:31
41 lines
2861 bytes
2861 bytes
Kovalenko Dmitry wrote: >> Also it appears that there is no way to support overlapped >> transactions as opposed to either single transactions or nested >> transactions in ADO/OLEDB. Some databases, such as Interbase, >> support overlapped transactions and not nested transactions. > > Yes, InterBase connection can have multiple overlapped transactions > http://www.ibprovider.com/eng/examples/example_09_02.html > > Once again: > - Support of overlapped transactions - "Active Sessions" >1 (or ==0). > - Property with information about support nested transaction not > exists. Why does Active Sesssions > 1 or == 0 indicate support for overlapped transactions ? > >> If I call >> TADOConnection::BeginTrans() using Interbase and a transaction >> already exists in the connection, does BeginTrans() fail and throw >> an exception or does it succeed and return a value of 1 indicating a >> top-level transaction ? > > In this case, InterBase OLEDB provider must be throw exception with > error code .... If InterBase OLEDB provider supported overlapped transactions, the starting a second transaction from a session should not fail. The problem with ADO/OLEDB and overlapped transactions is that there is no way to specify which transaction to commit and/or rollback if two or more overlapped transactions are running at the same time. > > Apropos, current status of transaction (session object) you can > receive througn ITransaction::GetTransactionStatus Good information to know. However I am not sure how to go from ADO objects to the underlying OLEDB interfaces. In this example I would want to go from my ADO Connection object to its underlying ITransaction interface. How would I do that ?
Technical Details
Message-ID:
<3ea6cd28@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ea2fb2b$1@newsgroups.borland.com> <1050902823.314958@sunflower.loc> <3ea45f3c$1@newsgroups.borland.com> <1050990899.658114@sunflower.loc> <3ea51cce$1@newsgroups.borland.com> <1051079121.494231@sunflower.loc>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,75bd37a927147926 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-04-23 10:33:47 PST From: "Edward Diener" <eddielee@tropicsoft.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3ea2fb2b$1@newsgroups.borland.com> <1050902823.314958@sunflower.loc> <3ea45f3c$1@newsgroups.borland.com> <1050990899.658114@sunflower.loc> <3ea51cce$1@newsgroups.borland.com> <1051079121.494231@sunflower.loc> Subject: Re: Level of transaction support Date: Wed, 23 Apr 2003 13:31:01 -0400 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 66.245.11.162 Message-ID: <3ea6cd28@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051118888 66.245.11.162 (23 Apr 2003 10:28:08 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail