Learn more about Toad for SQL Server
at Dell Software

Find solutions and downloads at the
Toad for SQL Server Support Portal

Toad for SQL Server 6.6

You are here: SQL Server Objects > Databases > Generate DDL Scripts

Generate DDL Scripts

This topic focuses on information that may be unfamiliar to you. It does not include all step and field descriptions.

To generate DDL scripts

  1. Select Tools | Export | Generate DDL Script.

  2. Select one or more database from the list and click OK.

  3. Check the object types and select the required objects in Search Results pane.

    Tips:

  4. Select to set Export DDL options.

    Complete the fields as necessary. Review the following for additional information:

    Script options

    Description

    Drops

    Select True to add a DROP statement for any objects included in the SQL script.

    Caution: This drops existing objects in the database before the CREATE statement using the existing definition is generated.

    Script permissions

    Select True to create all permissions for existing objects included in the script.

    Table script options

    Description

    Script indexes

    Select True to create indexes that currently exist for tables.

    Script triggers

    Select True to create triggers that currently exist for tables.

    Script keys, defaults, check constraints

    Select True to create keys, defaults, and check constraints that currently exist for tables.

    Note: You can create Profiles to store your preset options.

  5. Select to specify Output.

  6. Click .

 

Related Topics

of