Is there a command you can run on a DB in Microsoft SQL Server 2008 that will output 'create table' scripts for every table in the DB? I'd want it to include all create stuff too.. like indexes, keys, etc. I'd also like it to output users and their roles on the DB.
