This script creates a SQL_Statistics table in the Mater Database and then scroll through the existing databases on the server and gathers the Servers Name, logical device name, the file name and the file size and writes it to the table alond with a date time stamp.
We run it once a month to gather the growth rate on the databases. We then pull the data off multiple servers to write statistics reports.
The DB_Size returned is in 8KB Page Blocks. So Multiply by 8 to get KB then do the rest of the math againt 1024