Skip to main content
Version: On-Premise 2.4

DB2 Statement

Activity Description

Runs a statement (INSERT, DELETE, UPDATE) on a DB2 database.

note

To use DB2 activities, you need to download the latest version of the Data Server Driver Package from the IBM website and install it on the machine where the Resolve Actions Express executor is installed.

After installing the Data Server Driver Package, edit the activity's configuration by adding the path to the package as follows:

  1. In the Resolve database, select the dbo.TBL_ActivitiesSource table.
  2. In the SourceCode column, search for DB2Statement.
  3. In the Assembly segment of the activity's XML code, update the path to the package.

Settings

  • Statement – The query's text. For example, Delete from logs.
  • Connection String – Specifies the required connection string in order to connect the database.
    Example: Server=192.168.1.10:50000;Database=SAMPLE;
  • User Authentication – Determines whether a user's authentication credentials are required to execute the query (if the credentials are not specified in the clear text connection string).
  • User Name – A DB2 user authorized to execute the query (e.g., sa).
  • Password – The user's password.
note

To avoid translation of %TEXT% (in case TEXT is not a variable name), add @ before the percentage character. For example: Select * From TableName Where ColumnName LIKE '@%TEXT%'.

note

To use the word variable within a statement, use the following convention: @%variable% (else it is referred to as a system variable).