Re: ADO MSSQL7 and two independent transactions

From: Viatcheslav V. Vassiliev (support_at_oledbdirect.com)
Date: 04/23/04


Date: Fri, 23 Apr 2004 14:19:26 +0400

No, ADO connection corresponds to OLEDB session, not to OLEDB data source.
You may open 2 connections and ADO will use connection pool, so on low level
there will be one OLEDB data source object and 2 session objects.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Kysy" <krzys@zeto.swidnica.pl> сообщил/сообщила в новостях следующее:
news:4088c5a4@newsgroups.borland.com...
> Is possible to open two independent (parallel) transactions on one
> connection?
> In InterBase-VCL we have TIBTransaction classess. In ADO (Delphi6)
> BeginTrans and other transaction-flow methods are stored in TADOConnection
> class. I dont want nested transactions, just save logs from one
transaction
> even if this transaction must be rollback.
>
> K
>
>



Relevant Pages

  • Re: Cross Transactions between ADO & ADO.Net
    ... connection--it thrashes the server unnecessarily and discards useful server ... goes away and quietly reopen the connection when they return. ... > DTC transactions are not only heavy, they might also cause deadlocks due ... We even call ADO ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cross Transactions between ADO & ADO.Net
    ... MARS session pool limited to one connection?). ... > There is one thing that might help here, if you're using SQL Server. ... We even call ADO code from ... >> the DTC cordinator from COM+ to handle the transactions between ADO.Net ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cross Transactions between ADO & ADO.Net
    ... DTC transactions are not only heavy, they might also cause deadlocks due to ... And also I wouldn't recommend keeping an open connection to the sql server ... > some code will be ADO & some code will be ADO.Net. ...
    (microsoft.public.dotnet.framework.adonet)
  • Cross Transactions between ADO & ADO.Net
    ... We connection to SQL server when the application starts and then ... be ADO & some code will be ADO.Net. ... for ADO) and ADO.Net wrapper in COM+. ... from COM+ to handle the transactions between ADO.Net & plain ADO for us. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: C++ support for ADO
    ... TESTHR(pConn.CreateInstance(__uuidof(Connection))); ... In answer to your question I'm interested in ADO not the ADO.net. ... data classes for working with ADO/OLE DB. ... You can also use the OLE SDK. ...
    (microsoft.public.data.ado)