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 > Sybase > Query sizes and sybase 12

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-02, 13:50
vchebolu vchebolu is offline
Registered User
 
Join Date: Mar 2002
Location: New Jersey
Posts: 7
Query sizes and sybase 12

Our Applicaton has a stored proc that is 17706 lines long. When I try to run this stored proc in sybase 12, it tells me that the procedure is corrupted and has to be recreated. The error also states that it was unable to build a query plan.

Is anyone aware of any bug in sybase 12 . I have managed to work it around by splitting it into 3 pieces of code. This code was running on 11.9.2.



Any help will be appreciated.
Reply With Quote
  #2 (permalink)  
Old 12-14-02, 13:53
MattR MattR is offline
Registered User
 
Join Date: Mar 2001
Location: Lexington, KY
Posts: 606
If I recall correctly you should drop and recreate compiled/stored objects (stored procedures, triggers) upon upgrading.
__________________
Thanks,

Matt
Reply With Quote
  #3 (permalink)  
Old 12-16-02, 21:06
vchebolu vchebolu is offline
Registered User
 
Join Date: Mar 2002
Location: New Jersey
Posts: 7
Quote:
Originally posted by MattR
If I recall correctly you should drop and recreate compiled/stored objects (stored procedures, triggers) upon upgrading.

Matt,

I had recreated all stored procedures after the upgrade. But doesnot work.


Thanks,
Vijay
Reply With Quote
  #4 (permalink)  
Old 12-16-02, 21:07
MattR MattR is offline
Registered User
 
Join Date: Mar 2001
Location: Lexington, KY
Posts: 606
What is your exact version? Paste your SELECT @@version results please.
__________________
Thanks,

Matt
Reply With Quote
  #5 (permalink)  
Old 12-19-02, 02:20
willy_and_the_ci willy_and_the_ci is offline
Registered User
 
Join Date: Feb 2002
Location: Willy is on vacation
Posts: 1,208
Hiya Vijay,

The best option is to split the proc into smaller proc.

What might be happening is with a stored proc being close to 12,000 lines the sysprocedures may be running out of sequence number. The datatype is smallint, which means the max number of lines for an object is 32,767.

On ASE 12.5 the sequence column datatype is int, if you don't want to split the proc maybe go to 12.5

Cheers
Willy
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