-- space usage information for each data file in tempdb
SELECT *,
(user_object_reserved_page_count)*8 as usr_obj_kb,
(internal_object_reserved_page_count)*8 as internal_obj_kb,
(version_store_reserved_page_count)*8 as version_store_kb
FROM sys.dm_db_file_space_usage
GO
-- tempdb files
SELECT * FROM tempdb.sys.database_files
GO
Troubleshooting tempdb Space Usage:
No comments:
Post a Comment