Sync SQL Server batch rows on schedule
DatabaseMarketing
What it does
When a scheduled trigger fires, this automation retrieves a batch of rows from the dbo.Nullcolumn table in SQL Server. The batch is written to the dbo.null_column_replicate_1 table so the replica stays synchronized with the source.
Who it's for
Data and analytics teams who need to maintain a synchronized copy of SQL Server data on a regular schedule.
Apps used
How teams use this
Keep a backup table current
Run the replication on a daily schedule so the replica table always has the latest rows from the source. The team can query the replica without affecting production queries.
Feed a reporting database
Point the replica table to a separate reporting database so analysts can run reports without impacting transactional queries. Only the destination table changes.
Filter rows before replication
Add a condition to the batch read so only rows matching certain criteria are replicated to the target table. This requires a where clause on the source query.
Replicate to multiple destinations
Include a second SQL Server write step so the batch goes to both the replica table and an archive table. Set up both destinations to receive the same batch in parallel.
How it works
- Retrieve batch on schedule. On the scheduled interval, SQL Server reads a batch of rows from the dbo.Nullcolumn table to prepare them for replication to the destination.
- Write batch to replica table. SQL Server inserts the batch into the dbo.null_column_replicate_1 table so the replica matches the source data exactly.