🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2611

Re: Level of transaction support

#2611
From: Kovalenko Dmitry
Date: Wed, 23 Apr 2003 17:45
54 lines
3615 bytes
> Why does Active Sesssions > 1 or == 0 indicate support for overlapped
> transactions ?

OLEDB References:
The maximum number of session objects that can be active at one time.

For some providers, this value represents the number
of active connections or a combination of session objects
and active connections. This value can reflect a limitation
imposed by either the provider or the data store.
At minimum, if the value is zero, there is NO SPECIFIED LIMIT
or the limit is unknown; or if the value is one, there can be only
one active session; or lastly, if the value is greater than one,
there is a known limit. The number of supported sessions
is provider-specific.

Active session - this is session with active 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.
No. One session - one transaction (or list of nested transactions)

For OLEDB - You can create multiple session (~ multiple transaction)
For ADODB - You cannot create multiple sessoion. But, see again:

http://www.ibprovider.com/eng/examples/example_09_02.html

This is sample of custom ActiveX component for clone ADODB.Connection to
separate transaction in single connection. Source of this component included
on commercial kit of IBP :-)

> > 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 ?
You can access to session object through ADOConnectionConstruction /
ADOConnectionConstruction15 interfaces (see ADODB SDK).

Welcome on www.ibprovider.com :-)

Regards,
Dmitry Kovalenko
Technical Details
Message-ID: <1051120009.684906@sunflower.loc>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!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
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> <3ea6cd28@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-23 10:51:29 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> <1051079121.494231@sunflower.loc> <3ea6cd28@newsgroups.borland.com>
Subject: Re: Level of transaction support
Date: Wed, 23 Apr 2003 21:45:06 +0400
Lines: 55
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: <1051120009.684906@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 1051120010 195.34.226.161 (23 Apr 2003 10:46:50 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!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