Azure Synapse SQL Delete

Overview

You can use this Snap to delete records from the target tables.


Azure Synapse SQL Delete Snap Overview

Prerequisites

Limitations

When the table name contains single quote characters, the No table found error is displayed. This is because of the JDBC driver limitation.

Known issues

None.

Snap views

Type Description Examples of upstream and downstream Snaps
Input

A document containing the criteria for records to be deleted.

Output

Document containing the status of the deleted records.

Learn more about Error handling.

Snap settings

Legend:
  • Expression icon (): Allows using pipeline parameters to set field values dynamically (if enabled). SnapLogic Expressions are not supported. If disabled, you can provide a static value.
  • SnapGPT (): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
  • Suggestion icon (): Populates a list of values dynamically based on your Snap configuration. You can select only one attribute at a time using the icon. Type into the field if it supports a comma-separated list of values.
  • Upload : Uploads files. Learn more.
Learn more about the icons in the Snap settings dialog.
Field/Field set Description
Label

String

Required.Specify a unique name for the Snap.

Default value: Azure Synapse SQL - Delete

Example: Delete Rejected Employee List

Schema Name

String/Expression/ Suggestion

Specify the database schema name from which you want to delete the record. If you do not specify the schema name, then the suggestion for the Table Name fetches all tables names of all schemas.

Default value: N/A

Example: dbo

Table Name

String/Expression/ Suggestion

Specify the table name to execute the delete on.

Default value: N/A

Example: "dbo"."Employee"

Delete condition (deletes all records from table if left blank)

String/Expression

Specify the SQL WHERE clause of the delete statement. You can specify the delete from an upstream Snap or through the Pipeline parameters. Specify a valid WHERE clause for the delete condition. If you leave this field blank, the Snap deletes all the records from the table.

Warning: Using expressions that join strings together to create SQL queries or conditions has a potential SQL injection risk and hence is unsafe. Ensure that you understand all implications and risks involved before using concatenation of strings with '=' Expression enabled.

Default value: N/A

Example:

Without using expressions

Using expressions

  • email = '[email protected]' or email = $email
  • emp=$emp
  • "EMPNO=$EMPNO and ENAME=$EMPNAME"
  • "emp='" + $emp + "'"
  • "EMPNO=" + $EMPNO + " and ENAME='" + $EMPNAME+ "'"
Number of Retries

Integer/Expression

Specify the maximum number of retry attempts to make to receive a response. The request is terminated if the attempts do not result in a response.

Default value: 0

Example: 3

Retry interval (seconds)

Integer/Expression

Specify the time interval between two successive retry requests. A retry happens only when the previous attempt resulted in an exception.

Default value: 1

Example: 10

Snap execution

Dropdown list
Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute: Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only: Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Default value: Execute only

Example: Validate & execute