I'm going to be setting up a hosted solution for many of my clients ... I was thinking at first to use different subdomains all with its on copy sugar open source and a unique database per domain.. I'm about to experiment with creating a script that dynamically changes the config file's database settings depending on the login of the user: to switch to a different Sugar database thats unique to that user...

This is going to be useful since I won't have to patch each Sugar installation when updates occur or generate new installations for different companies...

Has anyone tried to do this?

Also is there any user/company specific data being stored to each installation directory (besides config.php and layout modifications)? If there is then I would need to have that also dynamically change..