Skip to main content Skip to complementary content

Creating a Job for tracking data changes in MySQL using SCD

Create a Job to open a connection to a MySQL database, insert the employee data into a MySQL database table using SCD (Slowly Changing Dimensions)

This Job retrieves and displays the inserted data on the console, then updates the employee data in MySQL using SCD, retrieves and displays the updated data on the console, finally closes the connection to the MySQL database.

Procedure

  1. Create a new Job and add a tMysqlConnection component, two tFixedFlowInput components, two tMysqlSCD components, two tMysqlInput components, two tLogRow components, and a tMysqlClose component by typing their names in the design workspace or dropping them from the Palette.
  2. Link the first tFixedFlowInput component to the first tMysqlSCD component using a Row > Main connection.
  3. Do the same to link the first tMysqlInput component to the first tLogRow component, the second tFixedFlowInput component to the second tMysqlSCD component, and the second tMysqlInput component to the second tLogRow component.
  4. Link the tMysqlConnection component to the first tFixedFlowInput component using a Trigger > OnSubjobOk connection.
  5. Do the same to link the first tFixedFlowInput component to the first tMysqlInput component, the first tMysqlInput component to the second tFixedFlowInput component, the second tFixedFlowInput component to the second tMysqlInput component, and the second tMysqlInput component to the tMysqlClose component.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!