DB2
The DB2 connector provides an API to work with DB2 databases.
This article describes the operations for the DB2 built-in connector, which is available only for Standard workflows in single-tenant Azure Logic Apps. If you're looking for the DB2 managed connector operations instead, see DB2 managed connector reference.
In a Standard logic app resource, the application and host settings control various thresholds for performance, throughput, timeout, and so on. For more information, see Edit host and app settings for Standard logic app workflows.
For more information about connecting to DB2 from your workflow in Azure Logic Apps, see Connect to IBM DB2 from workflows in Azure Logic Apps.
The DB2 server name.
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
Server name | The DB2 server name. | string | False |
The port number for the database on the DB2 server.
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
Port number | The port number for the database on the DB2 server. | int | False |
The name of the database on the DB2 server.
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
Database | The name of the database on the DB2 server. | string | False |
The user name for accessing the DB2 server.
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
User name | The user name for accessing the DB2 server. | string | False |
Password for the DB2 user name
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
Password | Password for the DB2 user name | securestring | False |
The package collection.
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
Package collection | The package collection. | string | False |
The default schema for schema calls.
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
Default schema | The default schema for schema calls. | string | False |
The host coded character set identifier (CCSID) of the DB2 database.
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
Host CCSID | The host coded character set identifier (CCSID) of the DB2 database. | int | False |
The PC code page for the DB2 connection.
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
PC code page | The PC code page for the DB2 connection. | int | False |
Optional keywords. For example, 'Default Qualifier=User2;DBMS Platform=DB2/AS400'. Multiple values should be separated by semi-colons
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
Additional connection string keywords | Optional keywords. For example, 'Default Qualifier=User2;DBMS Platform=DB2/AS400'. Multiple values should be separated by semi-colons | int | False |
DB2 connection string
Name | Description | Type | Required | Allowed Values |
---|---|---|---|---|
Connection string | DB2 connection string | securestring | False |
DB2 tables |
Return tables in DB2 schema. |
Delete row |
Delete row or rows. |
Execute a stored procedure |
Stored procedure |
Execute non-query |
Execute a SQL command that does not return a result set. |
Execute query |
Execute a SQL query. |
Insert row |
Insert a row. |
Update rows |
Update row or rows. |
Return tables in DB2 schema.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Schema
|
schema | string |
The name of the schema. |
Returns
The DB2 tables.
- DB2 tables
- array
Delete row or rows.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Table name
|
table | True | string |
The name of the table. |
Columns used in the 'WHERE' clause
|
searchCondition | True | object |
Column names with the values used to determine which rows to delete. |
Stored procedure
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Stored procedure
|
procedureName | True | string |
The name of the stored procedure. |
Stored procedure parameters
|
procedureParameters | string |
The parameters for executing the stored procedure. |
Returns
The output from executing the stored procedure.
- Output
- array
Execute a SQL command that does not return a result set.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
SQL statement
|
statement | True | string |
The SQL statement to execute. |
Statement parameters
|
sqlParameters | object |
The parameters for the SQL query. |
Execute a SQL query.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Query
|
query | True | string |
The SQL query. |
Query parameters
|
queryParameters | object |
Parameters for the SQL query. |
Returns
The result of the SQL query.
- Result
- array
Insert a row.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Table name
|
table | True | string |
The name of the table. |
Values to insert
|
insertParameters | True | object |
The column names with the values to insert. |
Update row or rows.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Table name
|
table | True | string |
The name of the table. |
Values to update
|
updatedColumns | True | object |
The names of columns with the updated values. |
Columns used in the 'WHERE' clause
|
searchCondition | True | object |
The names of columns with the values that determine the rows to update. |