Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Sybase > Re: procedure c...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 2478 of 2544
Post > Topic >>

Re: procedure cash...

by Manish Negandhi <negandhi.manish@[EMAIL PROTECTED] > May 29, 2008 at 01:51 AM

On May 29, 12:30=A0pm, Bum...@[EMAIL PROTECTED]
 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" =3D convert(char(30), name),
"Default" =3D convert(char(11), space(11-char_length(
convert(varchar(11), defvalue)))+
convert(varchar(11), defvalue)),
Memory Used" =3D convert(char(11), space(11-char_length(
convert(varchar(11), b.comment)))+
convert(varchar(11), b.comment)),
"Config Value" =3Dconvert(char(11), space(11-char_length(
isnull(a.value2, convert(char(32), a.value)))) +
isnull(a.value2, convert(char(32), a.value))),
"Run Value" =3D convert(char(11), space(11-char_length(
isnull(b.value2, convert(char(32), b.value)))) +
isnull(b.value2, convert(char(32), b.value))),
"Unit" =3D convert(char(20), b.unit),
"Type" =3D convert(char(10), b.type)
from master.dbo.sysconfigures a,
master.dbo.syscurconfigs b
where
a.config *=3D b.config
and name like "%" + "procedure cache" + "%"
and parent !=3D 19
and a.config !=3D 19
order by name

-HTH
Manish Negandhi
[TeamSybase]
 




 4 Posts in Topic:
procedure cash...
Bumsys@[EMAIL PROTECTED]   2008-05-29 00:30:24 
Re: procedure cash...
Manish Negandhi <negan  2008-05-29 01:51:32 
Re: procedure cash...
Bumsys@[EMAIL PROTECTED]   2008-05-29 05:07:39 
Re: procedure cash...
Manish Negandhi <negan  2008-05-29 05:50:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:01:47 CDT 2008.