Sync rows from SQL Server on a schedule

Recipe ToolsDatabase

What it does

When a specified interval triggers, this automation selects rows from a table in SQL Server. For each row, a message is logged to the job report so someone can track what data was processed.

Who it's for

Data and analytics teams who need to extract SQL Server table data at regular intervals without manual queries.

How teams use this

Monitor user table changes daily

Run the query every morning to pull the latest rows from dbo.users and log them for review. The team sees a daily record of what changed without writing SQL themselves.

Sync user data to a data warehouse

Extend this automation to insert each logged row into a data warehouse table after it is selected from SQL Server. Add a second database connection and a write step to complete the sync.

Alert on rows matching a condition

Filter the selected rows to only those where a specific column meets a condition, such as status equals inactive. Send a notification to Slack when matching rows are found.

How it works

  1. Start on a specified interval. The automation runs at the interval someone configures, such as hourly, daily, or weekly.
  2. Select rows from the table. Query the dbo.users table in SQL Server and retrieve all rows that match the configured criteria.
  3. Log each row to job report. For each row returned from SQL Server, log a message to the job report so someone can track what data was processed.