--- title: "Dynamically enable SQL statements" slug: "phase-4-dynamic-sql" updated: 2026-10-06T05:47:52Z published: 2026-10-06T05:47:52Z canonical: "docs.lobstersoftware.com/phase-4-dynamic-sql" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Dynamically enable SQL statements If checkbox **Activate phase 4** (page "Main settings") is set, a variable selected here controls the execution of SQL statements. If no variable is selected, the setting of the checkbox applies. If the selected variable has the value "true", the SQL statements are executed. **NOTE:** The variable is evaluated after the Mapping. In the logging for phase 4, it will be stated whether the SQL execution was activated/deactivated due to the variable. So the SQL statements in Phase 4 will only be executed if: - At least one target structure node has a database alias and an SQL table assigned (see section “Phase 4”). - At least one field under this node has a SQL column name assigned (see section "Phase 4"). - The above mentioned checkbox is set and the configured condition is met. The core task of Phase 3. Mapping transfers data from the source structure to the target structure according to defined rules. In the process, fields can be transformed, functions can be called, and values can be calculated.