0

I am using SQL Server 2012, in this I want to obtain informations about the Store volume in the several data Tables. Therefore I use this query:

USE msdb;                                   --DATABASE
EXEC sp_spaceused 'people';--TABLENAME

This is only working for tables that I have defined.

But how can I have access to System tables like sys.trace_xe_action_map

4

1 回答 1

1

Try this:

select sum(au.total_pages)
from sys.system_internals_partitions p
join sys.system_internals_allocation_units au 
     on au.container_id = p.partition_id
where p.object_id = object_id('sys.trace_xe_event_map');
于 2013-10-10T09:13:12.693 回答