Solved

Resource limit exceeded

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro which automatically sends attachment to Outlook 14 61
VB6 - Convert HH:MM into Decimal 8 51
Add and format columns in vb6 7 46
clicking a shape in a frame array vb6 3 40
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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

910 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