Re: Cannot create a new connection because in manual or distributed transaction

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


Date: Thu, 5 Feb 2004 10:15:21 +0300

If you are using MS SQL Server, it is

CAUSE
The Microsoft OLE DB Provider for SQL Server does not allow more than one
active connection within the scope of a transaction.

RESOLUTION
Use a server-side or client-side cursor other than the forward-only and
read-only (often called a firehose) cursor.

Look Q272358 in MSDN for more info.

//------------------------------------------
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)

"Deck" <d@d.com> сообщил/сообщила в новостях следующее:
news:40217292$1@newsgroups.borland.com...
> Randomly, our users are receiving this exception.
> And we cannot identifiy the scenario causing
> it so its very difficult to trace where the problem
> lies. What's really causing this error?
>
> TIA
>
>



Relevant Pages

  • Re: How can I trap an error on a "CommitTrans" command in VB6 using ADO and SQL Server 2000?
    ... I'm now able to use a client-side cursor (which allows me to ... > always use SQLOLEDB for accessing SQL server rather than MSDASQL. ... > Try creating a UDL file and using this for your connection string. ... >> adStatus As ADODB.EventStatusEnum, ByVal pConnection As ADODB.Connection) ...
    (microsoft.public.vb.database.ado)
  • Re: OLE DB Cursors
    ... You don't do this with properties in the SQL Server OLE DB provider. ... client-side cursor, otherwise you have a server-side cursor managed from the ... I have to do a lot of updates() here, ... > its optimistic lock / client cursor. ...
    (microsoft.public.data.oledb)
  • Re: ADO Filtering and Sorting
    ... Filter and sort are available only on client-side cursor (CursorLocation:= ... Vassiliev V. V. ... http://www.oledbdirect.com - The fastest way to access MS SQL Server, ... MS Jet and Interbase ...
    (borland.public.delphi.database.ado)
  • Dropping an active connection on an attached database
    ... active connection on an attached database in SQL Server Management ... I can't detach an attached database because apparently there ...
    (comp.databases.ms-sqlserver)
  • Re: Dropping an active connection on an attached database
    ... active connection on an attached database in SQL Server Management ... Books Online for SQL Server 2005 athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books ... ...
    (comp.databases.ms-sqlserver)