Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Resource limit exceeded

Posted on 2000-05-04
3
Medium Priority
?
228 Views
Last Modified: 2010-05-02
I get the following error on running a Visual FoxPro 6.0(sp3) executable.
The program reads a DB/2 database on an IBM AS400 using IBM Client Access. I use an ADO connection in a VB6 ActiveX DLL.
The query runs ok for less than 1000 records but the error below occurs when the number is greater than 1000.

Error: OLE IDispatch exception code 0 from dbQuery.Execute: [IBM][Client Access ODBC Driver (32-bit) ][DB2/400 SQL]SQL0904 – Resource limit exceeded…


What causes this?
Thank you all in advance
Denis
0
Comment
Question by:93MH1351
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
wylliker earned 90 total points
ID: 2784752
The resource limit exceeded sounds like a DB2 resource problem, not your code.

Was there more to the message after the ... that you didn't post?

Usually the message will indicate the parameter that was exceeded.  This parameter is set by the DBAs on the DB2 server (in this case AS400).


It is possible that you exceeded the maximum amount of time for a query to run, the maximum number of rows that the DB2 database will return at one time, etc.  There are many DB2 configuration settings so it is hard for me to guess exactly which one it may be.

Once you have identified the parameter that has been exceeded I could probably help you further.

In any case, unless you have a really good reason, you will have to adjust your code and/or query to work within the running configuration of DB2.
0
 

Author Comment

by:93MH1351
ID: 2941168
Comment accepted as answer
0
 

Author Comment

by:93MH1351
ID: 2941170
You pointed me in the right direction
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

722 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