Solved

Resource limit exceeded

Posted on 2000-05-04
3
221 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
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
wylliker earned 30 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

758 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

21 Experts available now in Live!

Get 1:1 Help Now