Edit

Share via


Migrate with a DACPAC file

Applies to: ✅ Warehouse in Microsoft Fabric

The Fabric Migration Assistant is a migration experience that you can use to copy dedicated SQL pools in Azure Synapse Analytics, databases in SQL Server, and databases from other SQL Database Engine platforms seamlessly into Fabric Data Warehouse.

This guide walks you through the steps to migrate from an Azure Synapse Analytics dedicated SQL pool to Fabric warehouse by using a DACPAC file.

Tip

For more information on the Migration Assistant's features and capabilities, see Fabric Migration Assistant for Data Warehouse.

For more information on strategy and planning your migration, see Migration​ planning: ​Azure Synapse Analytics dedicated SQL pools to Fabric Data Warehouse.

Prerequisites

Before you begin, make sure you have the following items ready:

To use the AI-assisted migration features of the Migration Assistant to fix migration problems, you need to activate Copilot:

Copy metadata

  1. In your Fabric workspace, select the Migrate button on the item action deck.

    Screenshot from the Fabric portal of the Migrate button in the item action deck.

  2. In the Migrate to Fabric source menu, under Migrate to a warehouse, select the source system tile.

    • If you're migrating from an Azure Synapse Analytics dedicated SQL pool, select the Azure Synapse Analytics dedicated SQL pool tile.
    • If you're migrating from any other T-SQL database, such as a database in SQL Server, Azure SQL Database, or Azure SQL Managed Instance, select the SQL Server database tile.

    Screenshot from the Fabric portal of the source system tiles.

  3. On the Choose your method page, select Upload a file with the source metadata and select Next.

  4. Select Choose file and upload the DACPAC file of your source data warehouse. When the upload finishes, select Next.

    Screenshot from the Fabric portal of the Upload DACPAC file step in the Migration Assistant.

  5. In the Set the destination page, enter the name of the new Fabric workspace and new warehouse item you want to migrate into. Select Next.

  6. Review your inputs and select Migrate. The Migration Assistant creates a new warehouse item and starts the metadata migration.

    Note

    When you use the Migration Assistant, the new warehouse has case insensitive collation, regardless of the default warehouse collation setting.

    Screenshot from the Fabric portal of the Review page of the Migration Assistant. The source is a DACPAC file and the Destination is a new warehouse item named AdventureWorks.

    During this step, the Migration Assistant translates T-SQL metadata to supported T-SQL syntax in Fabric Data Warehouse. After the metadata migration finishes, the Migration Assistant opens. You can access the Migration Assistant at any time by using the Migration button in the Home tab of the warehouse ribbon.

  7. Review the metadata migration summary in the Migration Assistant. You see the count of migrated objects and the objects that need to be fixed before they can be migrated.

    Screenshot from the Fabric portal of the Migration Assistant's metadata migration summary. The Show migrated objects option is highlighted.

  8. Select Show migrated objects to expand the section and see a list of objects that you successfully migrated to your Fabric warehouse.

    Screenshot from the Fabric portal of the Migration Assistant's metadata migration summary and the list of migrated objects.

    The State column indicates if the Migration Assistant adjusted the object's metadata during the translation to Fabric Data Warehouse. For example, you might see that certain column datatypes or T-SQL language constructs are automatically converted to the ones that are supported in Fabric. The Details column shows the information about the adjustments that the portal made to the objects.

  9. Select any object to see the adjustments that the Migration Assistant made during migration.

  10. Open the metadata migration summary in full screen view for better readability. Apply filters to view specific object types.

    Screenshot of the full screen view of the Migration Assistant's metadata migration summary of migrated objects.

  11. Optionally, select the Export menu to download a migration summary as an Excel file or a CSV.

    • The downloaded Excel file is a fully structured workbook with two worksheets: Migrated Objects and Objects To Fix. It's MIP-compliant and aligned with your organization's sensitivity labels.
    • The CSV is lightweight and tool-friendly.

    Screenshot from the Fabric portal showing the Export and Download As options.

    Each exported file provides a structured, comprehensive view of your migration results, including:

    Field name Description Sample values
    Object name Name of SQL object
    Object type SQL object types Table, view, stored procedure, function
    State Translation state Adjusted: Fabric Data Warehouse compatible updates are applied

    Not adjusted: No change in the original script
    Details List of adjustments applied or error messages
    Type of error Type of translation error Translation message, Translation error, Translation apply error

Fix problems by using Migration Assistant

Some database object metadata might fail to migrate. Commonly, this failure occurs because the Migration Assistant couldn't translate the T-SQL metadata into those that are supported in a Fabric warehouse or the translated code failed to apply to T-SQL.

Fix these scripts by using the Migration Assistant.

  1. Select the Fix problems step in the Migration Assistant to see the scripts that failed to migrate.

    Screenshot from the Fabric portal of the Migration Assistant's Fix Problems list.

  2. Select a database object that failed to migrate. A new query opens under the Shared queries in the Explorer. This new query shows the metadata definition and the adjustments that were made to it as automatic comments added to the T-SQL code.

  3. Review the comments in the beginning of the script to see the adjustments that were made to the script.

  4. Review and fix the broken scripts by using the error information and documentation.

  5. To use Copilot for AI-powered assistance in fixing the errors, select Fix query errors in the Suggested action section. Copilot updates the script with suggestions. Mistakes can happen as Copilot uses AI, so verify code suggestions and make any adjustments you need.

  6. Select Run to validate and create the object.

  7. The next script to fix opens.

  8. Continue to fix the rest of the scripts. You can choose to skip fixing scripts that you don't need during this step.

  9. When all desired metadata is ready for migration, select the back button in the Fix problems pane to return the top-level view of the Migration Assistant. Check the 2. Fix problems step in the Migration Assistant.

Copy data by using Migration Assistant

Copy data helps with migrating data used by the objects you migrate. You can use a Fabric Data Factory copy job to do it manually, or follow these steps for the copy job integration in the Migration Assistant.

  1. Select the Copy data step in the Migration Assistant.

  2. Select Use a copy job button.

  3. Enter a name for the new job, and then select Create.

  4. On Connect to data source page, enter Connection credentials for the source Azure Synapse Analytics (SQL DW) dedicated SQL pool. Select Next.

  5. In the Choose data page, select the tables you want to migrate. The object metadata should already exist in the target warehouse. Select Next.

    Screenshot from the Fabric portal of the Choose data pane, with some tables selected.

  6. In the Choose data destination page, choose your new Fabric warehouse item from the OneLake catalog. Select Next.

  7. In the Map to destination page, configure each table's column mappings. Select Next.

  8. In the Copy job mode page, choose the copy mode. Choose a one-time full data copy (recommended for migration), or a continuous incremental copying. Select Next.

  9. Review the job summary. Select Save + Run.

  10. When the copy job finishes, check the 3. Copy data step in the Migration Assistant. Select the back button at the top to return to the top-level view of the Migration Assistant.

Reroute connections

In the final step, reconnect the data loading and reporting platforms so that their connections point to your new Fabric warehouse.

  1. Identify connections on your existing source warehouse.

    • For example, in Azure Synapse Analytics dedicated SQL pools, you can find session information including source application, who is connected, where the connection is coming from, and if it's using Microsoft Entra or SQL authentication:
    SELECT DISTINCT CASE 
             WHEN len(tt) = 0
                 THEN app_name
             ELSE tt
             END AS application_name
         ,login_name
         ,ip_address
    FROM (
         SELECT DISTINCT app_name
             ,substring(client_id, 0, CHARINDEX(':', ISNULL(client_id, '0.0.0.0:123'))) AS ip_address
             ,login_name
             ,isnull(substring(app_name, 0, CHARINDEX('-', ISNULL(app_name, '-'))), 'h') AS tt
         FROM sys.dm_pdw_exec_sessions
         ) AS a;
    
  2. Update the connections to your reporting platforms to point to your Fabric warehouse.

  3. Test the Fabric warehouse with some reporting before rerouting. Perform comparison and data validation tests in your reporting platforms.

  4. Update the connections for data loading (ETL/ELT) platforms to point to your Fabric warehouse.

    • For Power BI/Fabric pipelines:
      1. Use the List Connections REST API to find connections to your old data source, the Azure Synapse Analytics dedicated SQL pool.
      2. Update the connections to the new warehouse by using the Manage Connections and Gateways page in Settings.
  5. When you finish, check the Reroute connections step in the Migration Assistant.

Congratulations! You're now ready to start using your new warehouse.

Screenshot from the Fabric portal Migration Assistant showing all four job steps complete and a congratulations popup.