Re: Shared db update between VB.NET and VB6
- From: "Oenone" <oenone@xxxxxxxxxxx>
- Date: Fri, 08 Apr 2005 11:09:09 GMT
Oenone wrote:
> However, this means that I cannot put a single transaction around the
> updates performed by both the application and the plug-in (as each is
> a separate connection). If one should fail after the other has been
> committed, I have lots the integrity of my data.
I actually found the answer I was looking for in the end, but it turned out
to be a SQL Server problem rather than ADO.NET.
The solution is to use bound connections (sp_bindsession). This allows two
separate connections (one in ADO.NET and the other in ADO) to share the same
transaction. They will therefore not block one another, and all updates can
be committed in a single atomic operation.
--
(O) e n o n e
.
- Prev by Date: Re: Why aren't changes on form?
- Next by Date: Sending DTMF Tones
- Previous by thread: Counting USER-Objects in VB.NET
- Next by thread: Sending DTMF Tones
- Index(es):
Relevant Pages
|