Unix Technical Forum

procedure cash...

This is a discussion on procedure cash... within the Sybase forums, part of the Database Server Software category; --> When I run sp_configure "procedure cache size" I got a table about procedure cash (parameter name, default, ...). How ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-29-2008, 09:41 AM
Bumsys@gmail.com
 
Posts: n/a
Default procedure cash...

When I run sp_configure "procedure cache size" I got a table about
procedure cash (parameter name, default, ...). How can i get config
value of procedure cache size using sql query?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-29-2008, 09:41 AM
Manish Negandhi
 
Posts: n/a
Default Re: procedure cash...

On May 29, 12:30*pm, Bum...@gmail.com wrote:
> When I run sp_configure "procedure cache size" I got a table about
> procedure cash (parameter name, default, ...). How can i get config
> value of procedure cache size using sql query?


you can grab the sql from sp_configure or directly query sysconfigures
and syscurconfigs tables in master database where name like
"%procedure cache%" , here is the sample..


select "Parameter Name" = convert(char(30), name),
"Default" = convert(char(11), space(11-char_length(
convert(varchar(11), defvalue)))+
convert(varchar(11), defvalue)),
Memory Used" = convert(char(11), space(11-char_length(
convert(varchar(11), b.comment)))+
convert(varchar(11), b.comment)),
"Config Value" =convert(char(11), space(11-char_length(
isnull(a.value2, convert(char(32), a.value)))) +
isnull(a.value2, convert(char(32), a.value))),
"Run Value" = convert(char(11), space(11-char_length(
isnull(b.value2, convert(char(32), b.value)))) +
isnull(b.value2, convert(char(32), b.value))),
"Unit" = convert(char(20), b.unit),
"Type" = convert(char(10), b.type)
from master.dbo.sysconfigures a,
master.dbo.syscurconfigs b
where
a.config *= b.config
and name like "%" + "procedure cache" + "%"
and parent != 19
and a.config != 19
order by name

-HTH
Manish Negandhi
[TeamSybase]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-02-2008, 12:34 PM
Bumsys@gmail.com
 
Posts: n/a
Default Re: procedure cash...

And how can i update config value of procedure cash size using sql
query?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-02-2008, 12:34 PM
Manish Negandhi
 
Posts: n/a
Default Re: procedure cash...

On May 29, 5:07*pm, Bum...@gmail.com wrote:
> And how can i update config value of procedure cash size using sql
> query?


Updating system tables directly is not recommended. You can use
sp_configure to change value of procedure cache, because of which
system tables will automatically get updated

-HTH
Manish Negandhi
[TeamSybase]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com