If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Statement length exceeds

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-31-04, 06:54
sroz sroz is offline
Registered User
 
Join Date: Mar 2004
Posts: 3
Statement length exceeds

i wrote a script to create a stored procedure :
create procedure SP();
...
end procedure;

when i run the cript to create it i get the message "460 STATEMENT LENGTH EXCEEDS MAXIMUM".

can sombody tell me what kind of error generate this message ?
Reply With Quote
  #2 (permalink)  
Old 03-31-04, 13:10
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
The SPL routine is send to the dbserver as one big sql statement. You are hiting the limit of this (I thought it was 32 kb, but it could be bigger on newer versions??). Easiest solution, split your procedure into several smaller ones.

Greetings,

Rob Prop
Reply With Quote
  #3 (permalink)  
Old 04-01-04, 01:45
sroz sroz is offline
Registered User
 
Join Date: Mar 2004
Posts: 3
thanks. i deleted spaces and comments and now it works fine.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On