Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-10-06
3
Medium Priority
?
3,007 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 23

Accepted Solution

by:
Snarf0001 earned 750 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 23

Expert Comment

by:Snarf0001
ID: 12248434
np
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we’ll look at how to deploy ProxySQL.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
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…
Suggested Courses

916 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