๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Unlock records in ADO transactions

#5833
From: Yuancai (Charlie) Ye
Date: Mon, 29 Jan 2001 21:04
54 lines
2845 bytes
Hi,
    Forget the last message.
    Access doesn't support nested transactions. It supports one transaction
per session at one time. One record can NOT be locked by two transactions at
the
same time. I guess you are right. So you have to start a transaction after
another transaction is done.

Yuancai (Charlie) Ye
See 26 OLEDB examples at http://www.geocities.com/oledbpro

"Cristian" <cgv@diit.cl> wrote in message news:3a75d123_2@dnews...
> Hi:
>     Thanks, but the problem is: how can I make changes during a
transaction
> in a table that is accessing by another transaction? I'm working in a MDI
> project, and the Child window have an ADOConnection component. This
> connection component open an access table and start a transaction. The
first
> child window I open present no trouble, then I open another child windown
> (the first still open); the BeginTrans method start without erros, but
when
> I try to post a record a message error pop up: currntly record locked...
>
> What can I do to unlock the record???
>
> When I use Paradox table the solution is TSession component, but in ADO
> isn't exist a similar component to TSession. Maybe the problem is that
> Access can't accept multiple transaction executing at the same time
> accessing the same table, what do you think?
>
> Yuancai (Charlie) Ye <yekerui@yahoo.com> escribi๏ฟฝ en el mensaje de
noticias
> 3a75c3e8$1_2@dnews...
> > Hi,
> >     I think you have to wait until other tranasctions are completed.
> >
> > Yuancai (Charlie) Ye
> > See 26 OLEDB examples at http://www.geocities.com/oledbpro
> >
> > "Cristian" <cgv@diit.cl> wrote in message news:3a757701_2@dnews...
> > > Hi:
> > >
> > > I'm using BeginTrans method  with ADOConnection component but records
> are
> > > lock to others transactions.
> > > How can I unlock records?
> > >
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID: <3a75d968$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!208.21.4.213
References: <3a757701_2@dnews> <3a75c3e8$1_2@dnews> <3a75d123_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,5df411c2233814c8
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-01-29 12:58:43 PST
Reply-To: "Yuancai \(Charlie\) Ye" <yekerui@yahoo.com>
From: "Yuancai \(Charlie\) Ye" <yekerui@yahoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3a757701_2@dnews> <3a75c3e8$1_2@dnews> <3a75d123_2@dnews>
Subject: Re: Unlock records in ADO transactions
Date: Mon, 29 Jan 2001 16:04:08 -0500
Lines: 56
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
NNTP-Posting-Host: 208.21.4.213
Message-ID: <3a75d968$1_1@dnews>
X-Trace: 29 Jan 2001 12:58:16 -0800, 208.21.4.213
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!208.21.4.213