Script to find out data and log file size
Posted by Jugal Shah on February 15, 2010
You can use below script to find out data file (*.mdf) and Log file (.ldf) size
exec sp_helpdb [dbName]
or
use [dbName]
select str(sum(convert(dec(17,2),size)) / 128,10,2) + 'MB'
from dbo.sysfiles




filesearch.web.id said
thanks.. nice info
new said
could u please explain me why we r dividing by 128 and what is the purpose of 128,10,2