If you can, try backup and restore.
If you absolutely must create a script, download "SQL Server Developer Tools" from
http://msdn.microsoft.com/en-us/data/tools.aspx[
^]
The tool may generate the scripts you want, by running a 'schema compare' and 'data compare' against a fresh, empty database.
Hope this helps,
Pablo.