Write custom SQL queries to perform various operations by using the SQL component in RPA Desktop Design Studio.

Before you begin

Role required: none

About this task

You can configure the properties for the SQL component. For more information about these properties, see Properties of the General components.

Procedure

  1. In the Toolbox pane, navigate to General > SQL.
  2. Drag the SQL component to the Design surface.
  3. Click the component settings icon (Component settings icon.).
  4. Under the SCRIPT (SQL) heading, write the custom SQL query.
  5. (Optional) To add a parameter to the query, do the following.
    1. Click the add parameter icon (Add parameter icon.).
    2. Update the data type of the parameter.
    3. Repeat the steps to add more parameters.
    A Data In Port is added with each parameter you add.
  6. Click OK.
  7. To configure the input fields, see Configure port properties.
  8. To close the PORT PROPERTIES dialog, click OK.
  9. Connect the data and control ports of the SQL component to the corresponding ports of the other component as described in the following table.
  10. To view the output, right-click the Return field and click Preview Data.
  11. (Optional) To test the component, under the DESIGN tab, click Run.