dbTalk Databases Forums  

Proc getting recompiled.

comp.databases.sybase comp.databases.sybase


Discuss Proc getting recompiled. in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jcolins
 
Posts: n/a

Default Proc getting recompiled. - 03-16-2006 , 12:37 AM






How do know my procedure getting recompiled?


Reply With Quote
  #2  
Old   
Rob Verschoor
 
Posts: n/a

Default Re: Proc getting recompiled. - 03-16-2006 , 04:42 PM







"jcolins" <r_josephcollins (AT) rediffmail (DOT) com> wrote

Quote:
How do know my procedure getting recompiled?
You can tell in different ways, for example by enabling traceflag 302 -- if
there's 302 output, the proc is recompiled. You can also look at
monCachedProcedures.

HTH,

Rob
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5 / TeamSybase

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE"
"The Complete Sybase Replication Server Quick Reference Guide"
"The Complete Sybase ASE Quick Reference Guide"

mailto:rob (AT) YOUR (DOT) SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------




Reply With Quote
  #3  
Old   
Terence Chen
 
Posts: n/a

Default Re: Proc getting recompiled. - 03-16-2006 , 09:30 PM



Alternatively, enable trace 214 where ouput will indicate recompilation occurs.
1> exec proc_a
2> go
Execution required recompilation with status of:
(0x00001000 (MULT_RECOMPILE), 0x00000010 (SCHEMACT), 0x00000002 (RECOMPILE)),
for procname = proc_a, procid = 486293001, dbid = 2
at statement = 1, line = 1
c1 c2
----------- -----------
10 10

(1 row affected)

-Terence

"jcolins" <r_josephcollins (AT) rediffmail (DOT) com> wrote

Quote:
How do know my procedure getting recompiled?




Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.