Solved

SQL0904 - Resource limit exceeded

Posted on 2003-11-28
3
3,967 Views
Last Modified: 2007-12-19
Have been using MS SQL to retrieve data from our AS/400 quite successfully. Yesterday for no apparent reason the retrieval started failing on some records with the following error message; Microsoft OLE DB Provider for SQL Server error '80040e14' [OLE/DB provider returned message: [IBM][Client Access Express ODBC Driver (32-bit)][DB2/400 SQL]SQL0904 - Resource limit exceeded.] /qnative/order1.asp, line 149. The AS/400 information for MSGID SQL0904 shows “type 7 maximum size of prepared statement has been reached”. Can anyone advise a fix or suggest where I look next please?
0
Comment
Question by:stevespicer
3 Comments
 
LVL 34

Accepted Solution

by:
arbert earned 250 total points
ID: 9838924
Have you added any more tables or fields to the query?  Has someone change the governor options on the AS400???
0
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 9839410
0
 

Author Comment

by:stevespicer
ID: 9848673
The problem was the SQLPKG size that is created on teh AS/400 each time an SQL query is run. It grew too large and stopped. Merely deleting teh package caused it to be recraeted next run. So housekeep the AS/400 objects *SQLPKG.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

896 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

11 Experts available now in Live!

Get 1:1 Help Now