Use scripts and explicit object dependencies
On this page
Scripts extend generated behavior at configured lifecycle points; script transformations represent explicit SQL operations in the data flow.
See the Script editor for Parsed and the package assignments.
Distinct script locations
| Location | Purpose |
|---|---|
| Import/Export Pre-SQL and Post-SQL | Tasks around the load operation |
| Historization/Persisting procedure | Generated or manual load implementation |
| Script transformation | User-defined script with declared incoming/outgoing objects |
| ETL Scripts | Repository extension script assigned a type, sequence and applicable packages |
| Object scripts | Reusable script associated with a repository object type and parameters |
Do not infer the execution connection from the word “script.” For example, the inspected SSIS Import/Export pre/post tasks use the DWH connection. Object-script sample generation queries repository metadata.
Configure an extension
- Select the script type and enter its statement/name.
- Set its sequence and inactive state.
- Where package selection is shown, select the intended packages.
- Save and inspect the relevant generated artifact or invocation path.
- Execute only after verifying connection, substitutions and side effects.
For script transformations, incoming objects are read/used; outgoing objects are changed. Declare both to support dependency ordering. Disable automatic dependency determination only when its inferred dependencies are inappropriate, and supply the intended dependencies manually.
Object scripts can have ordered parameters. The generated sample uses a repository object's key through a positional placeholder such as :1; this is not a general SQL Server parameter declaration. Review the invocation wizard before using a sample as an executable statement.
The Original/Parsed views show stored text versus macro-expanded text. A parsed preview is not proof of successful execution.