Solved

SQL0904 - Resource limit exceeded

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

839 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