Forum Discussion

jkerber's avatar
jkerber
New Member
1 year ago
Solved

Error with SQL DB Mirroring to Fabric

Have an on-prem instance we are trying to mirror to fabric. The instance is 2016 and database has about 300 tables with only 10Gb of data total. I have been successful in the setup and configuration ...
  • v-sgandrathi's avatar
    1 year ago

    Hi jkerber,


    Ensure that only user-defined tables are selected for mirroring, and explicitly exclude system-generated tables, especially those under the cdc schema or with names like MSchange_tracking. These are internal metadata tables used by SQL Server for Change Tracking or CDC and are not meant to be mirrored.

    Double-check that the database context and schema are correctly set in your mirroring configuration, as misalignment here can cause errors. If retrying replication on individual failed tables shows them as valid, it confirms the issue is schema-level, not data-level.

    Avoid including any internal SQL Server metadata tables in the replication set. Review your gateway setup and mirroring configuration to include only the necessary user tables.

    If the issue persists, try manually replicating a few failing tables and consider temporarily disabling CDC, mirroring the tables, and then re-enabling CDC after successful replication.

     

    I'm attaching the official Microsoft documents for your review, This might help you:

    Microsoft Fabric Mirrored Databases From SQL Server - Microsoft Fabric | Microsoft Learn
    Troubleshoot Fabric Mirrored Databases - Microsoft Fabric | Microsoft Learn
    Limitations of Fabric Mirrored Databases From SQL Server - Microsoft Fabric | Microsoft Learn

    The Microsoft community is here to assist you. Thank you, and please continue using the Forum.

    Regards,

    Community Support Team.