Update SQL Server employees on a 5-minute schedule

Recipe ToolsMarketingDatabase

What it does

When a scheduled trigger fires every 5 minutes, this automation selects and updates employee rows in the dbo.Employee table in SQL Server. The job report logs each cycle so someone can track what changed.

Who it's for

Data and analytics teams who need to refresh employee records in SQL Server on a regular cadence.

How teams use this

Refresh employee status records regularly

Run the automation every 5 minutes to keep employee status, department, or manager fields in sync with a source system. Batch updates ensure data stays current without delays.

Sync HR data to SQL Server

Extend this automation to pull employee changes from an HRIS system first, then update SQL Server. Add a step that queries the HR system before the select so records reflect the latest hire dates and role changes.

Alert on update failures

Retarget the job report logging to send a Slack message when the batch update fails or affects zero rows. The same schedule and SQL logic run, but someone gets notified of problems right away.

How it works

  1. Run every 5 minutes. The automation starts on a 5-minute schedule to keep employee data current without manual intervention.
  2. Select rows from the Employee table. Query the dbo.Employee table in SQL Server to retrieve the records that need to be updated in this cycle.
  3. Update rows in batch. Apply updates to the selected employee records in the dbo.Employee table in SQL Server as a single batch operation.
  4. Log the cycle to Job report. Record the results of this run in the Job report so someone can monitor the automation and verify all updates completed.