top of page

Fabric Mirroring From On-Prem SQL Server: The Rules I Don't Break

2 minutes ago
2 min read

Mirroring is the easiest way I know to get on-premises SQL Server data into Microsoft Fabric. There's no ETL to build and no pipeline to schedule. But easy to start isn't the same as safe to run, and the difference comes down to a handful of rules.


What does Fabric Mirroring actually do?

Mirroring keeps a read-only, near real-time copy of the SQL Server tables you select in OneLake. On SQL Server 2016 to 2022, Fabric turns on change data capture (CDC) for those tables itself. On SQL Server 2025, it uses a change feed through Azure Arc instead, so CDC must stay off. In the platforms I design, each mirrored database becomes the Bronze layer.


The rules I follow

  • Don't select "Mirror all data." It adds CDC load to every table, picks up any table created later, lands unapproved data in OneLake, and silently stops at 1,000 tables. Mirror an approved list built from the reports, models and integrations actually in scope.

  • Give the Fabric login sysadmin only during setup. On 2016 to 2022, Fabric needs it to enable CDC. The DBA removes it the same day and verifies it's gone. Never use a personal or shared admin account for the connection.

  • Don't enable CDC by hand before mirroring. Fabric does it.

  • Check every table for a primary key first. On 2016 to 2022, tables without one can't be mirrored. Copy those on a schedule instead.

  • Don't pause the Fabric capacity while databases are mirrored. A long outage can force every table to re-seed.

  • Rebuild security in Fabric. Row-level security, column permissions and masking don't carry over.


Why does mirroring stop, and how will you know?

This is the lesson that matters most. Mirroring can stop quietly after a schema change, an expired credential, a gateway outage or a paused capacity, and the first sign is stale data in a report. So every mirror I set up gets replication health monitoring that alerts by email or Teams when a mirror or table stops, or data goes stale.

I also ask the DBA to watch two things:

  • Transaction log growth. Mirroring holds log truncation until changes replicate. If log_reuse_wait_desc shows REPLICATION, mirroring is holding the log.

  • CDC lag. If minutes behind keeps growing while the source is busy, CDC can't keep up and needs tuning. Growth overnight with no changes is normal.

And I ask source system owners to tell the data team before schema changes or vendor upgrades, so a planned change doesn't look like an outage.


The takeaway

Mirroring removes the ETL, not the operations. Treat it like any production integration: least privilege, an approved table list, and monitoring from day one. Do that, and it's the fastest, cleanest path I know from on-premises SQL Server to Microsoft Fabric.

Comments


Contact Joe Bonomo

Thanks for submitting!

© 2025 by Joe Bonomo. Built using Wix.

bottom of page