Skip to main content
Version: Current

Execute Query

Description

The Execute Query activity runs a raw SQL statement against a connected database. It enables advanced operations and custom queries beyond standard insert, update, select, and delete.


Common Capabilities

Process Data Support

info

This activity supports dynamic configuration using variables from the Process Data drawer.

You can bind values from Model Data, Form Data, System Data, Enterprise Variables, and Activity Outputs.

Learn more → Using Process Data


Design-Time Configuration

The following properties define how the activity connects to the database and executes the SQL query.

Connection Type

Specifies the database engine (for example, SQL Server, Oracle, MySQL, PostgreSQL). Selecting the correct type ensures compatibility with the target database.

Connection Name

Select a preconfigured database connection that defines the server, credentials, and security settings.


Query

Specifies the SQL statement to be executed.   The Query must be valid for the selected database type and may return a result set or perform data modification operations.


Timeout

Specifies the maximum time (in seconds) that the activity will wait for the Query to complete.   The default value is 600 seconds.


Outputs

Output

Returns the result produced by the SQL query.   For queries that return data (for example, SELECT), this output contains the result set.   For data-modifying queries (for example, INSERT, UPDATE, DELETE), it may return the number of affected rows or the execution status.


Wait All Incoming

Execution Control

Controls how this activity behaves when multiple incoming execution paths converge.

Determines whether the activity executes when:

  • any incoming path completes, or
  • all relevant paths have completed before execution

Learn more → Execution Control


On Error

Error Handling Strategy

Defines how the workflow behaves if this activity encounters a runtime error.

Supported strategies include Fault, Continue, Suspend, and Retry.

Learn more → Error Handling