Issue with DACPAC deployment of SQL Dedicated Pool

Admin (KK) 131 Reputation points
2024-06-17T21:05:37.8733333+00:00

Hello, I am trying to implement automatically deployment of SQL Dedicated Pool from one environment to the other using DACPAC. I am using visual studio code as my IDE. i was able to connect to the database and was able to build the .sqlproj file. However when i try to deploy the dacpac file. i get the following error A project which specifies Microsoft Azure SQL Database v12 as the target platform cannot be published to Azure Synapse Dedicated SQL Pool.

I am pretty much sure its about this line of code in sqlproj file.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,621 questions
0 comments No comments
{count} votes

Accepted answer
  1. phemanth 8,080 Reputation points Microsoft Vendor
    2024-06-18T05:59:16.8733333+00:00

    @Admin (KK)

    Thanks for posting your question in the Microsoft Q&A forum

    The error message "Could not resolve SDK 'Microsoft.SqlServer.DACNAVSynapseSqlPool'" indicates that Visual Studio Code cannot locate the necessary SDK for deploying to Azure Synapse Dedicated SQL Pool.

    Here's how to address this issue:

    1. Install the Microsoft.SqlServer.DACNAVSynapseSqlPool SDK:

    Open a terminal or command prompt in Visual Studio Code.

    • Run the following command to install the required NuGet package: Bash dotnet add package Microsoft.SqlServer.DACNAVSynapseSqlPool

    This command will download and install the missing SDK into your project.

    2. Verify Installation:

    • After running the command, rebuild your project using: Bash dotnet build

    If the SDK was installed correctly, the build process should now succeed without the "Could not resolve SDK" error.

    Hope this helps. Do let us know if you any further queries.


1 additional answer

Sort by: Most helpful
  1. hossein jalilian 4,695 Reputation points
    2024-06-17T22:58:17.1033333+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    To deploy a DACPAC to an Azure Synapse Dedicated SQL Pool, you need to use the Microsoft.SqlServer.DACNAVSynapseSqlPool SDK instead of the Microsoft.Build.Sql SDK, which is designed for Azure SQL Database.

    Update your .sqlproj

    <PropertyGroup>
        <TargetPlatformIdentifier>SynapseDedicatedSQLPool</TargetPlatformIdentifier>
    </PropertyGroup>
    <Sdk Name="Microsoft.SqlServer.DACNAVSynapseSqlPool" Version="1.0.0.0" />
    
    

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful