Data Analytics
Timespan
explore our new search
​
Fabric: SCD Type 2 No-Code Demo
Microsoft Fabric
May 16, 2026 6:02 PM

Fabric: SCD Type 2 No-Code Demo

by HubSite 365 about Pragmatic Works

Microsoft Fabric SCD Type Two no-code: Azure SQL CDC to Lakehouse via Copy Job auto history, soft deletes, current view

Key insights

  • Microsoft Fabric now supports a no-code SCD Type 2 option inside the Copy Job flow for Lakehouse targets.
    The feature uses source CDC to track inserts, updates, and deletes without custom scripts.
  • Simple setup: create a Copy Job, choose your source and Lakehouse destination, switch to Incremental copy, select the SCD Type 2 write method, and set the business key.
    Fabric then handles versioning and incremental runs automatically.
  • Run behavior: the initial load builds the base table and Fabric auto-creates required history columns.
    On subsequent runs Fabric reads CDC, applies built-in MERGE logic, writes new versions, closes old rows, and records deletes as soft deletes.
  • Key fields Fabric adds include surrogate keys plus effective-dating like ValidFrom and ValidTo, and a IsCurrent flag.
    Filter on the IsCurrent flag to retrieve the latest state with no extra code.
  • Critical gotcha: do not edit column mappings after enabling SCD Type 2.
    Fabric must auto-generate additional history and key columns; manual mapping can break the SCD process.
  • Why it matters: this no-code pattern speeds deployment, removes custom MERGE scripts, and preserves a full audit trail for dimension changes.
    Note the main requirement: your source must support CDC to enable incremental history tracking.

Quick summary of the demo

The YouTube video from Pragmatic Works demonstrates how Microsoft Fabric now supports full SCD Type 2 history tracking inside a no-code Copy Job. The presenter sets up an Azure SQL customer table with CDC enabled, configures a Lakehouse destination, chooses incremental copy and the SCD Type 2 writing method, and points out a key caveat about column mappings. He then runs an initial load, simulates updates, inserts, and a delete in the source, and shows how a second run applies history tracking automatically without custom code.

The demo highlights how Fabric adds history columns and flags, preserves soft deletes, and exposes a simple filter for the latest state. Therefore, teams can get a clean, current view while retaining full audit rows for analytics. The video serves as a practical walk-through for engineers and analysts who want to evaluate no-code SCD handling in a Lakehouse context.

How the no-code SCD Type 2 process works

In the demo, Copy Job relies on source-side CDC to detect inserts, updates, and deletes and then applies built-in SCD Type 2 logic at the destination. Fabric automatically generates surrogate keys and effective-dating columns such as ValidFrom, ValidTo, and a current-row indicator like IsCurrent, and it uses MERGE-style operations to upsert and close historical rows. As a result, data engineers avoid authoring complex MERGE statements or maintaining fragile ETL scripts for change detection and versioning.

Because the platform adds those extra columns and manages updates, users can filter on the IsCurrent flag to obtain the latest state without writing additional SQL. At the same time, the full history remains accessible for trend analysis or audits. The demo emphasizes that this flow works for Lakehouse targets as well as Data Warehouse, making it suitable for different analytics patterns.

Benefits and tradeoffs to consider

The main benefit shown is speed: setting up a Copy Job with SCD Type 2 takes minutes instead of the days or weeks often required to build and test custom pipelines. Consequently, teams can accelerate prototyping, reduce operational overhead, and standardize history handling across tables. In addition, built-in soft-delete support helps preserve records that should not be physically removed, improving auditability and downstream joins.

However, there are tradeoffs. Relying on a managed no-code mechanism creates a level of abstraction that reduces low-level control, which can complicate complex business rules or very specific merge conditions. Moreover, the source must support CDC, and the automatic addition of history columns means you should avoid changing column mappings prematurely; the demo explicitly warns against editing mappings while SCD Type 2 is enabled. Finally, for very large tables or high change rates, teams may face performance or cost tradeoffs related to merge operations and storage of historical rows.

Operational challenges and best practices

The video surfaces several practical challenges and suggests cautious practices. For example, you should test the initial load and subsequent incremental runs in a nonproduction environment to validate that the generated history columns and surrogate keys match expectations. In addition, teams should implement monitoring to watch for long-running merges or unexpected schema changes that could cause failures during automated runs.

Another important practice is governance: document the behavior and column names that Fabric creates so analysts can query history correctly and avoid surprises when integrating data into marts. Also, consider retention policies and compaction strategies for historical rows because retaining every change indefinitely can increase storage and query costs. Finally, coordinate schema changes and deployments so that the no-code process does not break when source tables evolve.

Implications for data teams and next steps

Overall, the demo from Pragmatic Works illustrates how Microsoft Fabric lowers the barrier to implementing robust history tracking by moving much of the heavy lifting into a managed, no-code flow. Consequently, smaller teams or analytics-focused groups can implement meaningful audit trails without heavy engineering, while larger teams can use the feature to accelerate routine tasks. Yet, the move to no-code shifts emphasis from writing pipelines to configuring, testing, and governing them effectively.

Looking ahead, organizations should weigh this convenience against the need for custom business logic, performance tuning, and compliance requirements. As the demo notes, applying the same pattern to a Fabric Warehouse is straightforward, which broadens where teams can adopt this approach. In sum, the video provides a clear, practical starting point, but teams will benefit from careful testing, monitoring, and an explicit plan for retention and schema management before rolling this into production.

Microsoft Fabric - Fabric: SCD Type 2 No-Code Demo

Keywords

SCD Type 2, Slowly Changing Dimension Type 2, Fabric Copy Job, Microsoft Fabric Lakehouse, No-code SCD Type 2 demo, No-code ETL for Lakehouse, Incremental copy job tutorial, Lakehouse data versioning