Access this form by selecting a database or database object (table, view, stored procedure etc) and clicking the generate script icon
on the
toolbar.
Select the database objects and options (see link below) and click Preview to view the script, or Script Now to output the script to a file.
Generate Script (Select Objects Tab)
Generate Script (Options Tab)