Solved

Resource limit exceeded

Posted on 2000-05-04
3
227 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 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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
Course of the Month5 days, 8 hours left to enroll

626 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