Prob: Error Doing Connection.Execute While In Transaction 
Author Message
 Prob: Error Doing Connection.Execute While In Transaction

I have a connection object (objConn) that is passed from a bas module to a
class within a project after BeginTrans.  In the receiving class, the
command

        objConn.Execute strSQL

fails, with the error message "Cannot create new connection because in
manual transaction mode", even though I'm not trying to create a new
connection.  strSQL is a simple select statement string that's verified to
be good.

Any idea what I might be doing wrong?  Thanks in advance.

Phil Galey



Tue, 09 Dec 2003 05:10:07 GMT  
 Prob: Error Doing Connection.Execute While In Transaction


Fri, 19 Jun 1992 00:00:00 GMT  
 Prob: Error Doing Connection.Execute While In Transaction
Phillip,
Use a server-side or client-side cursor other than the forward-only and read-only cursor.
http://support.microsoft.com/support/kb/articles/Q272/3/58.ASP

--

Thanks,
Carl Prothman
Microsoft Visual Basic MVP
http://www.able-consulting.com


Quote:
> I have a connection object (objConn) that is passed from a bas module to a
> class within a project after BeginTrans.  In the receiving class, the
> command

>         objConn.Execute strSQL

> fails, with the error message "Cannot create new connection because in
> manual transaction mode", even though I'm not trying to create a new
> connection.  strSQL is a simple select statement string that's verified to
> be good.

> Any idea what I might be doing wrong?  Thanks in advance.

> Phil Galey



Fri, 12 Dec 2003 00:57:28 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. COM+ Automation Error/connection to the transaction manager failed Error/ Q331953

2. Transaction Error: ODBC time out when executing action qry w/ hetero joins

3. ADO Connection Transaction vs. ObjectContext Transaction

4. errors different when executing SQL statements via recordset or connection object

5. HELP please!! Error in connection.execute

6. command.execute vs. connection.execute

7. ADODB TRANSACTION ADO ERROR No Transaction is Active

8. ADODB TRANSACTION ADO ERROR No Transaction is Active

9. Auto-Done configured but transaction commited.

10. Prob w/ creating and executing DTS package from VB6

11. Behaviour of execute method within transaction block

12. VB6-DataEnvironment: Executing Multiple Delete Commands (Transaction ????)

 

 
Powered by phpBB® Forum Software