Configuring a DB Data Sink Insert component

  1. Drag the DB Data Sink Insert component onto the Design window.

  2. In the Database Configuration window, add the connection parameters for the target database.

  3. See the “DB Data Sink Insert properties list” for specific field requirements.

  4. Select or enter the Destination table.

    You can write to an existing table or add a table based on existing ports in the project. See “Adding a Destination table” for additional information. To add a table based on an existing port structure, skip this step.

  5. Click Finish.

  6. Specify any other optional properties in the Properties window.

StepsUpdating port structure with database changes

  1. See “Updating port structure with database changes”.

StepsLoading data at IN-port to a database or a text file

  1. Right-click the DB Data Sink Insert component and select Flush Buffer.

The Flush Buffer option writes out the buffered rows to the target. All components for which a write block size has been specified can buffer data until the write block size is reached. At any time during simulation, if there is data in the buffer, the Flush Buffer option appears, along with the number of rows that are yet to be written to the target. If the buffer is empty, the option is not available.