ADODB TRANSACTION ADO ERROR No Transaction is Active 
Author Message
 ADODB TRANSACTION ADO ERROR No Transaction is Active

Do you have any idea why the following doesn't work?
I'm simplifying it a little bit but let's take this example.
The query itself works fine but when it tries to execute the
commitTrans
it gets an error saying it's not connected.... Does this have
to do with the DSN settings or perhaps the settings of the
connection
string?

?gnchadocn.ADOCn.ConnectionString
Provider=MSDASQL.1;Connect Timeout=15;Extended
Properties="DSN=Benchmark
Test;SERVER=TDBSRVR_SERVER_4;SYSID=CAICCI1;APPLID=TDBSRVR4;UID=BQTS3;PWD=XXX
XX;TRANSTABLE=;TABLECACHE=N;TABLELISTMASK=;AUTOCOMMIT=N";Locale
Identifier=1033

         gNCHADOCn.ADOCn.BeginTrans

         Call gNCHADOCn.ADOCn.Execute(SQL)

         gNCHADOCn.ADOCn.CommitTrans 'runtime error '-2147168242
(8004d00e)'; No Transaction is Active

I currently have my DSN as a User DSN

(again running regular queries against this DSN work fine).



Sat, 04 May 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ADODB TRANSACTION ADO ERROR No Transaction is Active

2. ADO Connection Transaction vs. ObjectContext Transaction

3. When to use MTS transactions and ADO Transactions

4. ERROR: No transaction is active.

5. ADO and Transaction in SQL Server 7.0: The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION.

6. To Transaction or Not to Transaction that is the question

7. Why to use COM+ transaction and not just SQL Server transaction

8. Reqiured Transaction and Required New Transaction

9. Cannot connect to the transaction manager or the transaction (-2147168229)

10. SQL Server ADO Transaction Error

11. SQL Server ADO Transaction Error

12. Error beginning first transaction with Vb+Ado+Sql7

 

 
Powered by phpBB® Forum Software