WOW! Love all the comments and code changes everyone is posting!
Now Mr Kehayias ask a good question
"If this is intended for SQL 2005/2008 why are you using legacy views like sysdatabases and sysfiles in the code. You also are not using the schema qualifiers in the code."
The code was written to quickly get some information. I have a collection of code from other projects, copy/paste some and wrote some to make this new one. So yes, there is older type code but it works so why not use it (for now). I didn't have a lot of time to write the code as we has a production issue to address.
If anyone would like to update the code and post it here, that would be great. But the code "as is" worked just fine and help me to correct the production issue.