Also, when I look on the file system, the tempdb mdf file is 27GB.... So why is the files option showing 8MB????
Also, this query says it is 8MB as well, but on the file system it shows up as 27GB? We are using Mounted Point Drives, which is very new to me... Not sure if that has anything to do with it....
with fsas
(
select database_id, type, size * 8.0 / 1024 size
from sys.master_files
)
select
name,
(select sum(size) from fs where type = 0 and fs.database_id = db.database_id) DataFileSizeMB,
(select sum(size) from fs where type = 1 and fs.database_id = db.database_id) LogFileSizeMB
from sys.databases db