Skip to the content.

sql.executeQuery

This action runs a sql query on a relational database returning a result after execution. Output values can captured after select query execution if required.

Use cases

Parameters

1: query

query: "any query to execute"

2: connection

connection: "connection where the query needs to be executed on"

3: outputDataset

outputDataset: "dataset reference name"

4: appendOutput

appendOutput: "Y" / "N"

Examples

  - number: 1
    type: "sql.executeQuery"
    name: "action1"
    description: "select data from Table1"
    component: ""
    condition: ""
    iteration: ""
    errorExpected: "N"
    errorStop: "N"
    parameters:
    - name: "query"
      value : "select Field1, Field2, Field3 from Table1"
    - name: "connection"
      value : "sql.executeQuery.2"
    - name: "outputDataset"
      value : "dataset1"