SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Tempb db size identification


Tempb db size identification

Author
Message
rajemessage 14195
rajemessage 14195
SSChasing Mays
SSChasing Mays (626 reputation)SSChasing Mays (626 reputation)SSChasing Mays (626 reputation)SSChasing Mays (626 reputation)SSChasing Mays (626 reputation)SSChasing Mays (626 reputation)SSChasing Mays (626 reputation)SSChasing Mays (626 reputation)

Group: General Forum Members
Points: 626 Visits: 366
Hi,

There is version store size counter in transaction category of performance monitor

, and there is

version_store_reserved_page_count col in

dm_db_file_space_usage

Q1) I wanted to know how should i compair/diffrencate them.

Q2) Please also tel me what is version store unit count in transaction category of counters of performace monitor.

Q3) "When tempdb runs out of space, the Database Engine forces the version stores to shrink."
above was written in following link
http://technet.microsoft.com/en-us/library/ms175492(v=sql.105).aspx

Does that mean shrinking is done automatically for other stores like object, internal objects etc in tempdb.
and finally i noticed i have to shrink it manully , please explain.

Q4) i have made a job(runs every 10 sec) and collected data from few miniuts in a table

to find the tempdb max usage , so that i can increment the auto grow accordingally.

please tel me is it correct.


select

(max((user_objects_alloc_page_count-user_objects_dealloc_page_count)

+

internal_objects_alloc_page_count

-internal_objects_dealloc_page_count) * 8 ) * 1.0/128

from

tempdm_db_task_space_usage


yours sincerely
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search