Solved

Resource limit exceeded

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 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