SELECT Name,
(CONVERT(FLOAT,size)) * (8192.0/1048576) File_Size,
(CONVERT(FLOAT,FILEPROPERTY(name,'SpaceUsed')))
* (8192.0/1048576) MB_Used,
((CONVERT(FLOAT,size)) * (8192.0/1048576)
- (CONVERT(FLOAT,fileproperty(name,'SpaceUsed')))
* (8192.0/1048576)) MB_Free
FROM sysfiles
ORDER BY FILEPROPERTY(name,'IsLogFile')
This will show actual files sizes and MB used internally.
No comments:
Post a Comment