Apply changes automatically from one azure database to another

时间:2019-05-31 11:27:09

标签: azure deployment azure-sql-database azure-pipelines

I am trying to implement source control for database stored procedures. I am using Azure DevOps and I have added all the stored procedures to an Azure Repo.

I am connecting to the Azure Repo through the team explorer in SSMS. I am working on a branch and once the stored procedure changes are added to the master branch I want the changes to be automatically deployed to the production database.

Is this possible using an Azure pipeline?

2 个答案:

答案 0 :(得分:0)

Yes you can do it with DACPAC

You can follow the following links,

Use tools that help you integrate and deploy your database along your code. Build better apps on any client OS (Windows, Linux, and macOS) using our graphical user interface and command line tools.

DevOps using SQL Server

Continuous Deployment of SQL

答案 1 :(得分:0)

以下链接逐步说明了如何设置Azure管道以执行从一个数据库到另一个数据库的更改:

https://microsoft.github.io/PartsUnlimited/iac/200.2x-IaC-CDAzureSQLdbwithVSTSandVS.html