Share via

Azure SQL database DACPAC creation

Nandan Hegde 36,881 Reputation points MVP Volunteer Moderator
2020-06-02T09:13:16.313+00:00

Hello Team,
Currently we are in a process of acquiring a 3rd party vendor and take over their data sources which include Azure SQL databases.
They did not maintain any code repo for the same and directly made changes via logging in the database.
So is there any way via which we can generate the DACPAC from the database and check it in TFS/GIT ?
Similar to how we can connect to SSIS/SSAS instance via visual studio and get their code.

Azure SQL Database
0 comments No comments

Answer accepted by question author

Vaibhav Chaudhari 39,006 Reputation points Volunteer Moderator
2020-06-02T19:26:17.863+00:00

In SSMS, connect to Azure SQL DB > Right click on it > Tasks > Extract data-tier application and follow the steps. It should generate .dacpac file.

Reference: https://learn.microsoft.com/en-us/sql/relational-databases/data-tier-applications/extract-a-dac-from-a-database?view=sql-server-ver15#UsingDACExtractWizard

You can also open VS > New project > SQL DB project and Import objects from Azure SQL DB by providing it's details

----------

If the response helped, do "Accept Answer" and upvote it - Vaibhav

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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