Limits on Transactions between Begin & Commit

Limits on Transactions between Begin & Commit

Post by A. Medni » Thu, 04 Jul 1996 04:00:00



I have 4 tables getting updated as one CommitTrans.  One table gets
anywhere from 1 to 100 records updated, 2nd table gets updated total
information, 3rd table writes out production data, and the 4th writes a
history transaction record.  In tests with up to 6 records getting
updated in table 1 everything works fine.  When the number of records
getting updated in table 1 exceeds 6 usually, I get DAO error for having
too many transactions.  Would anyone know how the transaction limits are
set or adjusted?  Using VB4.0 and Access 2.0

I checked the help but the only info I found related to nested
transactions.

TIA,
Andrei

 
 
 

Limits on Transactions between Begin & Commit

Post by Peter Larsso » Fri, 05 Jul 1996 04:00:00


You are nesting Your transactions!

See this:

-------------------------------------------------------------------------
BeginTrans

For X=1 To 100
    Call AlterDatabase(X)
Next

CommitTrans
-------------------------------------------------------------------------
This work well because You only have one nesting/level of transaction.
See this:

-------------------------------------------------------------------------
For X=1 To 100
    BeginTrans
    Call AlterDatabase(X)
Next

CommitTrans
-------------------------------------------------------------------------
This yields an error after only 5 iterations!

Peter Larsson

 
 
 

1. Easy question about Begin & Commit Transaction

Hy!
I'm using ADO to work over SQLServer from VB 5.0, and my question is
I make this query:
        "BEGIN TRANSACTION pp;
         INSERT ...;
         INSERT ...;
         UPDATE ...;
         COMMIT TRANSACTION pp;"

and I know that the second INSERT instruction won't be done due to a
duplicate primary key. So, the query returns a SQL error,...but  what
happends with the first INSERT?.
I think it shouldn't be made because the "COMMIT TRANSACTION" has not
been  executed, but  in the table I can see that the first INSERT has
inserted a new register.
Can anybody help me, please?    

Thanks in advanced. Please e-mail me your help, I can't read news
frecuently.

Sorry by my English.
Sonia Adell

2. DBAmon post

3. BEGIN TRANSACTION COMMIT TRANSACTIOn

4. Making tables off of existing table

5. Begin Transaction/Commit Transaction SQL Server 6.5

6. Q: Progress for Macintosh?

7. COMMIT TRANSACTION/BEGIN TRANSACTION

8. Help on Update in VB4 32bit please

9. Begin Transaction and Commit Transaction in ODBC...Help!!!!!

10. Begin and Commit transaction within another transaction.

11. Begin/Commit Transaction

12. ADO Begin/Commit Transactions

13. Need advice on begin/commit transactions in sp