Sync PervasiveDB rows on a schedule

Recipe Toolsdatabase

What it does

When a scheduled interval arrives, this automation runs custom SQL to select and insert rows in PervasiveDB. The job logs each step so someone can verify the data moved correctly.

Who it's for

Data and analytics teams who need to sync PervasiveDB rows on a recurring schedule without manual intervention.

How teams use this

Sync PervasiveDB tables nightly

Insert rows from a source table into a target table every night at midnight using custom SQL. The job report logs success or failure so the team knows the sync ran.

Filter rows before inserting

Modify the select SQL to only fetch rows that meet a condition, such as status equals active. Only those filtered rows are inserted into the target table each run.

Run the sync on demand from another system

Replace the clock trigger with an API call or webhook so a different application can start the row insert when needed. The SQL and logging steps remain unchanged.

How it works

  1. Run on a specified interval. This automation starts at the scheduled time you set, such as daily or weekly, then proceeds to fetch and insert rows.
  2. Select rows with custom SQL. Run a custom SQL query in Jdbc to fetch rows from the PervasiveDB source table based on your criteria and conditions.
  3. Insert rows into the target table. Run a custom SQL insert statement in Jdbc to write the selected rows into the PervasiveDB destination table for processing.
  4. Log the job result. Record a message to the job report in Jdbc so someone can confirm the rows were inserted and troubleshoot if needed.