Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Temp DB space issue

$
0
0

Hello

I have two instances fo SQL Server ruuning in a test enviornment with totally 60 GB. Both has multiple  files and inital size is 2GB per file. But the OS shows only 2.5 GB free space left. So when i ran the below query and looks like temp DB is not using that much space, then why ony 2.5 GB free on that drive. If any one can explain that will be great!!!!

SELECT SUM(unallocated_extent_page_count) AS [free pages],
(SUM(unallocated_extent_page_count)*1.0/128) AS [free space in MB]
FROM sys.dm_db_file_space_usage;

free pages      free space in MB
2085600        16293.750000 

free pages      free space in MB
3587672        28028.687500

Thank you!!!

 


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>