473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Limits to statement size in ISERIES

We just got a "SQL Statement too long or complex" error on the
ISERIES. James was able to get a compile after replacing some full
table names with (much shorter) correlation names, etc.

I have not see his query, but what are the statement size limits? I
thought they would be so large that this should not happen in a
practical situation.
Mar 10 '08 #1
2 4871
--CELKO-- wrote:
We just got a "SQL Statement too long or complex" error on the
ISERIES. James was able to get a compile after replacing some full
table names with (much shorter) correlation names, etc.

I have not see his query, but what are the statement size limits? I
thought they would be so large that this should not happen in a
practical situation.
http://publib.boulder.ibm.com/infoce...mstlimtabs.htm
2MB for the past couple of releases.

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Mar 10 '08 #2
--CELKO-- wrote:
We just got a "SQL Statement too long or complex" error on the
ISERIES. James was able to get a compile after replacing some full
table names with (much shorter) correlation names, etc.

I have not see his query, but what are the statement size limits? I
thought they would be so large that this should not happen in a
practical situation.
In v5r4:
Maximum length of an SQL statement (in bytes) 2 097 152
(from:)
http://publib.boulder.ibm.com/infoce...mstlimtabs.htm

Prior to that:
Longest SQL statement 65535
(from:)
http://publib.boulder.ibm.com/infoce...mstlimtabs.htm

--
Karl Hanson
Mar 10 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Thad Rizzi | last post by:
My webserver is an iSeries and I want to run some PHP scripts on it using SQL to access data on the iSeries. Does anyone have any exapmles or resources on the most effective way to do this? I...
2
by: bccbccbcc | last post by:
Anyone know if there is an analagous statement for the "USE" statement used in SQL Server? I am trying to prevent from having to change all the references to a database in my sql statement. I...
4
by: erkki | last post by:
Hi, I have to move iSeries library to new DB2 database. Is there any easier way to do this moving operation than exporting all tables in iSeries into text files and then import them into DB2...
1
by: Yanik Reid | last post by:
When I run the following vb.net code, I'm not able to acces the my database AMFLIB. I use to be able to access AMFLIB with the old ODBC driver from IBM iSeries Access but now I want to use the...
17
by: Sulu's Beard | last post by:
Hey gang, I'm evaluating the CA ERWin product for an upcoming data warehousing project. I'm most excited about the reverse engineering aspect of this system. I've sucessfully tested it on a...
3
by: Laurence | last post by:
Hi there, Does somebody know the efficent way to connect DB2/400? Through iSeries Access ODBC/OLEDB driver or DB2 Connect? Which will more fast and efficent? In addition, does DB2 Connect use...
3
by: roberto | last post by:
I have a table (ORDERS) with this kind structure (this is not the really table): OrderId Product Amount Agent1 Agent2 Agent3 ________ _______ ______ ______ ______ ______ 000001 ...
2
by: pmlane2001 | last post by:
I have a PHP SOAP XML file size problem that I was wondering if anyone has seen before. I have an XML file that when I put it through my PHP script with 270 lines (13,082 KB) it works fine. If I...
2
by: --CELKO-- | last post by:
What are the current query size limits (bytes) for various DB2 products?
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.