Nice script. Thanks for taking the time to share. I ran into one problem though. I get this error:
Msg 213, Level 16, State 7, Procedure sp_helpuser, Line 250
Insert Error: Column name or number of supplied values does not match table definition.
The reason is that sp_helpuser will return 2 result sets if aliases exist in any database.
Thanks again,
Lee