Open course · Azure data platform

Insert the new,update the changed.

Copy into a staging table, merge it into the real one by key, and log every run with how many rows came in, changed and were new. One lesson at a time: read it, build it in your own workspace, and come back any time. This browser keeps the lessons you mark as done.

On video

Watch it, then build it.

Video coming soonUpserts into Azure SQLUntil then, the lessons below walk through every step.
Before you start

What you need, what you build.

You need0 of 3 ready
You build

A staging table the copy fills, a stored procedure that merges it into the target by key and counts what it did, and a run log the pipeline writes to on success and on failure.

3 lessons · about 9 min to read, longer to build
Lesson 1 of 3 · 2 min

Stage it first

A staging table that looks like the target, emptied and filled by the copy on every run.

Video coming soonStage it firstUntil then, the lesson below walks through every step.
Next lessonMERGE by key
Lesson 2 of 3 · 3 min

MERGE by key

One stored procedure that updates the rows that changed, inserts the new ones and says how many of each.

Video coming soonMERGE by keyUntil then, the lesson below walks through every step.
Next lessonLog every run
Lesson 3 of 3 · 4 min

Log every run

A run log with the run ID, the rows copied and merged, and the error when something failed.

Video coming soonLog every runUntil then, the lesson below walks through every step.
Take it further

The next course is on the way.

Data pipelines with Azure Data Factory goes further than this one: 5 lessons, free and open like this one. Tell Behnia if you want it first.

By · Updated

Contact