How to generate a script (Enterprise Manager)
To generate a script
- Expand a server group, and then expand a server.
- Expand Databases, right-click the database to script, point to All Tasks, and then click Generate SQL Scripts.
- On the General tab, select the database objects to script. By default, all objects in the database are scripted.
- On the Formatting tab, select from the script formatting options:
- On the Options tab, select the security-related, table-related, and script file-related options.
- On the General tab, click Preview to view a preview of the generated script.
See Also
Documenting and Scripting Databases