I believe this is what you are looking for:select [DB File Name] = convert(nvarchar(40),Name), [Size MB] = -- Divide by 128 to convert from pages to MB convert(decimal(10,2),round(size/128.0000,2)), [Used MB] = convert(decimal(10,2),round(fileproperty(name,'SpaceUsed')/128.0000,2))from sysfilesorder by fileid
Results:DB File Name Size MB Used MB ---------------------------------------- ------------ ------------ master 14.25 13.63mastlog 2.00 .79(2 row(s) affected)
CODO ERGO SUM