You can use PowerShell in combination with the ability to generate scripts to do it for multiple databases. If you search Allen White's blog I know he has a script that will walk through all the objects in a database to generate a single script.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood" - Theodore Roosevelt