Article View: borland.public.cppbuilder.database.ado
Article #2609Re: Level of transaction support
From: Kovalenko Dmitry
Date: Wed, 23 Apr 2003 06:23
Date: Wed, 23 Apr 2003 06:23
40 lines
2890 bytes
2890 bytes
> As you say, there is unfortunately in ADO/OLEDB no way to determine the > level of transaction support prior to calling a transaction. This is very > poor design. This subjective opinion OLEDB technology - very extensibled. If such property not exists, this does not signify that its it is impossible add. > 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. > 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 .... Apropos, current status of transaction (session object) you can receive througn ITransaction::GetTransactionStatus > All in all, MS's documentation on transaction level support is very poor. Yes, yes, certainly. Full shit. Reading the comics is much more interesting. -- Bye Dmitry Kovalenko http://www.ibprovider.com
Technical Details
Message-ID:
<1051079121.494231@sunflower.loc>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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>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-22 23:39:02 PST From: "Kovalenko Dmitry" <dima@lcpi.lipetsk.ru> 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> Subject: Re: Level of transaction support Date: Wed, 23 Apr 2003 10:23:49 +0400 Lines: 41 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Organization: LCPI Message-ID: <1051079121.494231@sunflower.loc> Cache-Post-Path: sunflower.loc!unknown@main.gdi.loc X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Host: 195.34.226.161 X-Trace: newsgroups.borland.com 1051079122 195.34.226.161 (22 Apr 2003 23:25:22 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail