• I know I'm 2 years behind, but on sql 2008 I need to do this to use sp_msforeachdb :

    sp_msforeachdb 'use [?]; dbcc showfilestats'