Hi Guys
This is very weird...
I believe I wrote this about 4/5 years ago and submitted it back then to SQLServerCentral... I have no idea why it is popping up now as a script of the day.
It is a little dated and a lot less relevant now days.
Heck, this info is now available in a quick query to to SQL's dmv's.
Strange?
Anyway, Happy SQL Adventuring!