Solved

SQL0904 - Resource limit exceeded

Posted on 2003-11-28
3
3,935 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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

760 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

23 Experts available now in Live!

Get 1:1 Help Now