Log and sync SQL Server table updates

DatabaseRecipe Tools

What it does

When a new or updated row appears in the Raven.ExportLog table in SQL Server, this automation logs a message to the job report. It then executes the Raven.usp_Insert_ExportLog stored procedure to keep records in sync.

Who it's for

Data and analytics teams who monitor SQL Server table changes and need to track export activity.

How teams use this

Track export log changes in real time

Monitor the Raven.ExportLog table for new and updated rows, log each change to the job report, and execute the stored procedure automatically. The team sees all export activity without manual intervention.

Audit export activity for compliance

Capture every table change in the job report and run the insert procedure to maintain a complete audit trail. This setup ensures nothing is missed when exports occur.

Add conditional logging by export type

Filter the log message based on the export type or status column so only certain changes are recorded in the job report. Include a condition to check the row values before the stored procedure runs.

How it works

  1. Monitor the export log table. Detect when a new row is added or an existing row is updated in the Raven.ExportLog table in SQL Server.
  2. Log the change to job report. Write a message to the job report output documenting the table change so the team has a record of all export activity.
  3. Execute the insert stored procedure. Run the Raven.usp_Insert_ExportLog stored procedure in SQL Server to process and persist the export log entry.