SELECT DB_NAME() AS DBName
,groupid AS FileGroup
,fileid AS FileID
,RTRIM(NAME) AS LogicalFileName
,filename AS PhysicalFileName
,CAST(size / 128.0 AS DECIMAL(10, 2)) AS Size_MB
,CAST(FILEPROPERTY(NAME, SpaceUsed ) / 128.0 AS DECIMAL(10, 2)) AS SpaceUsed_MB
,CAST(size / 128.0 - (FILEPROPERTY(NAME, SpaceUsed ) / 128.0) AS DECIMAL(10, 2)) AS AvailableSpace_MB
,CAST((CAST(FILEPROPERTY(NAME, SpaceUsed ) / 128.0 AS DECIMAL(10, 2)) / CAST(size / 128.0 AS DECIMAL(10, 2))) * 100 AS DECIMAL(10, 2)) AS UsedPercentage
,CASE
WHEN STATUS & 0x100000 > 0 THEN growth
ELSE NULL
END AS Growth_Percent
,CASE
WHEN STATUS & 0x100000 = 0 THEN CAST(growth / 128.0 AS DECIMAL(10, 2))
END AS Growth_MB
,CASE maxsize
WHEN 0 THEN No growth is allowed
WHEN - 1 THEN File will grow until the disk is full
ELSE CONVERT(VARCHAR, CAST(maxsize / 128.0 AS DECIMAL(10, 2)))
END AS MaxSize_MB
FROM sysfiles
只是一种比更多的信息