Updating data in an Oracle or SQL database via a workflow can be done by using a set of activities.
[edit]
Instructions
- Establish a connection to an Oracle or SQL database. Once connected, it is necessary to model the table / column definitions, of the data to be udpated, in the workflow. Use CreateOLEOracleScope or CreateOLESQLScope to set up the connection.
- Place either a CreateOLETableScope (Activity) or a CreateOLEQueryScope (Activity) within the scope acticity to define the table you want to udate data.
- Iterate throw the fetched rows by using e.g. a for each activity.
- Once you determine the row to be updated, use EditOLERow (Activity) to start editing.
- Define the primary key column(s) by using EditOLEValue (Activity) activities within EditOLERow. You need to specify the column name in the DisplayName property and the data type in the DataType property. Check the IsPrimary checkbox for all columns defined in this step (key columns).
- Define the data column(s) to be updated by using EditOLEValue activities within the EditOLERow. Again, you need to specify the column name in the DisplayName property and the data type in the DataType property. Specify the new value for the cell in the property Value.
Example
Connecting to an Oracle database and updating data.
Download Workflow example