2009-11-16 99 views

回答

5

要查找的數據表中的佔用的字節數:

select db_property('pagesize')*(stab.table_page_count+stab.ext_page_count) 
    from sys.systab stab join sys.sysuser suser on stab.creator=suser.user_id 
    where stab.table_name='table_name' and suser.user_name='user_name' 

這不包括任何索引的大小或觸發在桌子上。

+0

謝謝,那正是我想要的。 – Cesar 2009-11-16 19:09:04