Edit

Share via


Extract a Data-tier Application (DAC) from an Azure Synapse dedicated SQL pool

Applies to: ✅ Warehouse in Microsoft Fabric

Overview

This guide provides step-by-step instructions to extract a Data-tier Application (DAC) from an Azure Synapse Analytics dedicated SQL pool using SQL Server Object Explorer in Visual Studio 2022.

An extracted data-tier application (DACPAC) file can be used in Migration assistant to migrate from an Azure Synapse Analytics dedicated SQL pool to Fabric Data Warehouse. For more information, see Migration​ planning: ​Azure Synapse Analytics dedicated SQL pools to Fabric Data Warehouse.

Prerequisites

Visual Studio requirements

Check that SSDT is installed

You can easily check if SSDT is present in your Visual Studio 2022 installation.

  1. Launch the Visual Studio Installer application.

  2. Select Modify on your Visual Studio 2022 instance.

  3. In the Workloads tab, in the Other Toolsets section, select Data storage and processing.

  4. Under Installation details, confirm that SQL Server Data Tools is checked.

    If not, select it to download and install.

    Screenshot of the Visual Studio Installer showing SSDT selected.

Azure requirements

  • Active Azure subscription with a dedicated SQL pool provisioned in an Azure Synapse Analytics workspace.
  • Sufficient permissions to extract metadata (db_owner or dbo or ddladmin role).

This guide applies to:

  • dedicated SQL pools in a Synapse workspace
  • dedicated SQL pools migrated to a Synapse workspace

Other scenarios to generate a DAC:

Extract DAC from dedicated SQL pool

  1. First, let's connect to your dedicated SQL pool within Visual Studio. Locate the connection string for your Azure Synapse workspace.

  2. Launch Visual Studio 2022. Open SQL Server Object Explorer from the View menu.

  3. Select the button to Add SQL Server. In the Connect popup, provide connection information to your dedicated SQL pool.

    • Server Name: <server-name>.sql.azuresynapse.net
    • Authentication: SQL Authentication or choose a Microsoft Entra authentication method for your subscription.
  4. Select Connect.

  5. In the SQL Server Object Explorer, expand the connected server. Expand the Databases node.

  6. Right-click the dedicated SQL pool.

  7. Select Extract Data-tier Application...

  8. Choose output location for the .dacpac file.

  9. Configure optional extraction settings, or accept the default settings, which include the schema only, not table data.

    Screenshot of the Extract Data-tier Application wizard.

  10. Select OK.

  11. Wait for extraction to complete.

    • If errors were encountered, view the Data Tools Operations window for details.

    • Optionally upon completion, select View Log to view the steps taken.

      Screenshot of the log.txt resulting from the DAC extraction successfully completing.

Next step