Save SQL

The Save SQL option generates a SQL script for the selected node:

  1. Right-click the node and click Save SQL.

  2. Select any one of the options to save the generated SQL script:

    • SQL to Clipboard

    • SQL to File

    • SQL Script to Clipboard

    • SQL Script to File

    When you save to a file, the system provides a default location. You can browse to change this location. You can also create a folder for scripts.

    The saved SQL includes SQL generated by the current node and all of its parent nodes that are data providers. The SQL lineage ends when it encounters a node that represents persisted objects, such as tables or models.

    The generated script does not generate all behavior of the node. The script does not create any objects. For example, if you select Save SQL for a Create Table node, it does not generate a script to create the table. Instead, it generates a script to query the created table.