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

Re: This statement has exceeded the maximum number of recompilations

$
0
0

We've found we can get round the problem by splitting the proc into 2 statements...

 

    select  getdate() timest, @SpName storedproc, @@nestlevel -1 nest, uid, @Logtype logtype,

               hostname, program_name, hostprocess, ipaddr, @Message mess1, @Message2 mess2

    into    #x

    from    master..sysprocesses

    where   spid = @@spid

 

 

    insert into SystemLog

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

        ProgramName, HostProcess, Ipaddr, Message, Message2

    )

    select *

    from #x


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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