How to deploy only required SSDT project when we have multiple projects in Visual Studio Project solution? (Azure SQL Database objects deployment)

Tej 146 Reputation points
2022-11-14T17:44:11.633+00:00

Hi team,

I want to deploy multiple Azure SQL database objects through dacpac deployment task. The challenge is I have multiple SSDT projects in visual studio project solution, but I want to deploy one SSDT project as per requirement through CICD pipeline in Azure devops. Is there any option to only deploy the required objects and ignore rest?

Could someone please suggest how to create a dacpac file against the required SSDT project and deploy it.

@Bhargava-MSFT , @ShaikMaheer-MSFT

Could you please assist on this?

Azure SQL Database
{count} votes

Accepted answer
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2022-11-16T03:51:56.397+00:00

    Hey,
    1st create a build pipeline:
    260763-image.png

    that would build the entire solution within the repo.
    And then copy the dacpac of all database projects

    260716-image.png

    blog: https://www.nitorinfotech.com/blog/databases-using-azure-devops

    Then create seperate release pipelines or tasks mapping to specific dacpacs and destination databases

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Tej 146 Reputation points
    2022-11-15T14:46:03.097+00:00

    Also, I have another query, if I include my database objects inside the existing database project in some different folder, How to deploy it through the dacpac file if want to include only the objects inside the folder?

    It would really helpful if you can clear my queries.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.