Solved

ADO Transaction Error:  Cannot create new transaction because capacity was exceeded.

Posted on 2004-10-06
3
2,795 Views
Last Modified: 2012-05-05
I'm using an ADO connection object in my VB6 app to connect to a SQL Server 2000 database.  The connection works fine (I'm able to use the connection to populate recordsets, etc.), but when I try to call ADOcon.BeginTrans, it raises the error "Cannot create new transaction because capacity was exceeded."  I have no other open transactions at the time of the error.  I've searched the web and found minimal support on this error, and the few things I found did not solve my problem (increasing the database and transaction log sizes was the main one).

Any ideas?
0
Comment
Question by:TravisMS
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Snarf0001 earned 250 total points
ID: 12242347
Though I haven't had this problem before, I did a quick search on it, and the most popular idea seems to be to set the cursor location to adUseClient.

http://www.dbforums.com/showthread.php?t=551665
0
 

Author Comment

by:TravisMS
ID: 12248396
Thanks for the link.  I've actually already looked at that link a couple of times.  However, it made me think a little more about that aspect, and I found an additional recordset that was open using that connection that was using a server-side cursor rather than a client-side cursor, and that was causing the problem.

Thanks again.
0
 
LVL 22

Expert Comment

by:Snarf0001
ID: 12248434
np
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now