Write statements define a delete, insert, or update statement against a specified data provider. Write statements enable administrators to delete, insert, or update column values in a data provider from within a workflow.
The following procedures explain how to configure simple and advanced write statements
Note:
Advanced write statements enable users with knowledge of SQL to write insert, update, or delete SQL statements.
To define a simple write statement
- Select the Query activity, click Properties and, after Write statement, click the Browse button.
- Select Simple Write and select a Write Type from the drop-down list. Options vary by data provider.
- After Table Name, select the table in the data provider against which the write statement is defined.
- Under Column Name, select a column in the data provider against which the write statement is defined.
- Under Value, select the data to be inserted into the data provider.
- Under Where, select a column name.
Note:
- ‘Where’ statements display only if Delete or Update is selected
- The column names displaying in the list derive from the Table Name selected.
- Select an operator from the drop-down list
- From the third drop-down list, select or type the variables used to evaluate the information selected from the first column
- To test the write statement, click Test Syntax.
- To empty column values, click Clear. To accept the write statement, click OK.
- Click Save.
To define an advanced write statement
- Select the Query activity, click Properties.
- After Write statement, click the Browse button and select the Advanced Write button.
- Under Query, type the insert, update, or delete SQL statements to be run against the data provider and click Execute.
- The Parameter name column will be populated with the column names in the data provider.
- Under Variable Name, from the drop-down list, select the variables used to evaluate the information you selected from the first column.
- To test the write statement, click Test Syntax.
- To empty column values, click Clear. To accept the write statement, click OK.
- Click Save.