Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

This statement has exceeded the maximum number of recompilations

$
0
0

Hi,

 

We've just upgraded a server from 15.7 SP122 to SP132 and are now getting this error on a proc call.

    Server 'LN_Q1_SQL', Procedure 'LogSystem', Line 10

    This statement has exceeded the maximum number of recompilations (10). This indicates an internal error. Please note the error prior to this one and  

    contact Sybase Technical Support.

 

The proc is simply

create procedure LogSystem

(  @SpName varchar(32),@Logtype char(1),@Message  varchar(255), @Message2  varchar(255) = null )

as

begin

    insert into SystemLog

    (   Timestamp, SpName, NestLevel, Uid, Logtype, Hostname,

        ProgramName, HostProcess, Ipaddr, Message, Message2

    )

    select  getdate(), @SpName, @@nestlevel - 1, uid, @Logtype, hostname,

            program_name, hostprocess, ipaddr, @Message, @Message2

    from    master..sysprocesses

    where   spid = @@spid

end

and there is no error prior to this one.

 

The proc worked ok before the upgrade.

We can't find any issues with the upgrade.

We're reloaded the proc just in case.

It doesn't happen in every call.

 

Has anyone else seen this problem ?


Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>