Creating Static SQL Queries Using the Database Connector
Prerequisites
You need the metadata of your database, at least table and column names need to be known.
Refer to Querying Metadata
Proceed as follows
-
Create a Technical Workflow containing a Database Connector.
-
In the dialog Database Connection and query type in the Function area of the Database Connector, activate the option Execute static query.
-
Click Next. The dialog Static SQL query is displayed.
Refer to Dialog Static Query
-
Enter the SQL query.
Please note that the SQL query can only consist of standard requests (SELECT, INSERT, UPDATE, DELETE, CALL). Database-specific syntax is not supported.
-
Click Next. The dialog Query result is displayed.
Refer to Dialog Query Result
-
Define how the query’s result should be output.
-
Click Finish to close the wizard.
-
Publish and activate the Technical Workflow.
The SQL query is sent to the database when the Database Connector is executed.