Forum Discussion

pmscorca's avatar
pmscorca
Kudo Kingpin
8 months ago
Solved

Moving Mirrored SQL database between workspace

Hi, I need to maintain a Fabric data platform solution having a Mirrored SQL database in the wrong workspace, and so I need to move it to another ws. I'd like to accomplish a such task avoiding to ...
  • v-dineshya's avatar
    8 months ago

    Hi pmscorca ,

    Thank you for reaching out to the Microsoft Community Forum.

     

    You can’t “move” a mirrored SQL database from one workspace to another using a “move” command or drag‑and‑drop.

     

    Please try below alternative workaround steps.

     

    1. Recreate the Mirrored Database in the Target Workspace: Switch to the target workspace where you want the mirrored database.


    Click Create --> See more --> Mirrored SQL database.
    configure your existing SQL Server connection . Name and configure the database, then click Mirror database. This starts replicating data into a new OneLake location in that workspace via Delta/Parquet.

     

    Note: The mirrored database is read-only via its SQL analytics endpoint and exists entirely within the target workspace.

     

    2. In the old workspace, locate the mirrored DB under Data Warehouse. Use the Delete option to remove it and free up resources this does not affect the original SQL source.


    Note: If you want to transfer only the mirrored data not the mirroring setup between workspaces:

    Use fabric pipelines to copy tables across workspaces. Source: Lakehouse in old workspace. Sink: Lakehouse in target workspace.  Configure either via the UI OneLake catalog or by specifying workspace/lakehouse IDs via dynamic parameters.

     

    Please refer below links.

    Microsoft Fabric Mirrored Databases From SQL Server - Microsoft Fabric | Microsoft Learn

    Copy data across workspaces - Microsoft Fabric | Microsoft Learn

     

    I hope this information helps. Please do let us know if you have any further queries.

     

    Regards,

    Dinesh