Execute SQL queries on a schedule with Jdbc

Recipe Toolsdatabase

What it does

When a specified interval arrives, this automation executes custom SQL in Jdbc. The query runs in batch mode on schedule so data stays current without manual work.

Who it's for

Data and analytics teams who need to run SQL queries on a recurring schedule.

How teams use this

Refresh data on a daily schedule

Run a SQL query each morning to pull the latest records from the source system. The data updates automatically without someone having to run it manually.

Sync tables to a data warehouse

Execute a SQL query on a weekly basis to move data from Jdbc into a warehouse. Add a second Jdbc connection to write the results to the destination system.

Generate a nightly report query

Schedule a SQL query to run each night and aggregate metrics for the next morning. The batch results are ready when the team arrives.

How it works

  1. Wait for the scheduled time. The automation runs when the specified interval arrives, such as daily at 2 AM or every Friday at noon.
  2. Execute the custom SQL query. Run the custom SQL statement in Jdbc. The query executes in batch mode so results are processed together without delays.