dbTalk Databases Forums  

Temp file growth

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Temp file growth in the sybase.public.sqlanywhere.general forum.



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

Default Temp file growth - 12-07-2009 , 11:05 AM






How to identify what is growing the temp file of a database?

Reply With Quote
  #2  
Old   
Lucjan Chmura [Sybase iAnywhere]
 
Posts: n/a

Default Re: Temp file growth - 12-10-2009 , 04:24 PM






Have a look at connection properties (call sa_conn_properties()
and in particular 'TempTablePages' property:

"Returns the number of pages in the temporary file used for temporary
tables."

the connection that uses the largest number of table pages is most likely
the one that causes tempfile to grow.

e.g.

select * From sa_conn_properties() where PropName like 'TempTablePages'
order by convert(integer,value) desc

will list all the connection ordered (descending) by number of temp table
pages.

Lucjan


"Martin" <mm7141 (AT) googlemail (DOT) com> wrote

Quote:
How to identify what is growing the temp file of a database?

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.