Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

the TEMPDB properties in the "Files" option show the "Initial Size (MB)" as 8MB, but under General it shows up as 27.851GB Size, with space avilable as 26.954GB. Why is file size showing 8MB?

$
0
0

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 fs
as
(
    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


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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