Field explanations for Azure DevOps SQL Change Automation: Build
DamianWise
Posts: 21 Bronze 3
When configuring a Build Pipeline within Azure DevOps and selecting "Temporary server type" = "SQL server", the server field is self-explanatory, but what is the Database field for? Is there a walkthrough for using this configuration?
Best Answer
-
way0utwest Posts: 312 Rose Gold 1OK, here's me Azure DevOps build step I use in most demos. I do have the agent running internally and just use AzDevOps for orchestration.If I specify a server, then builds occur there. Do this is a point of contention for parallel builds.Keep this in mind if you have lots of parallel builds. Here is a demo build running right now. It's the dlmau_____ one.
I don't specify a db (leave blank), which means the SCA cmdlet will create a randomly named db and perform the build there. This is the preferred way, because if I need to run multiple builds, I can. If I specify a db name, then this database will be used. This is where parallel builds from different developers can collide. In this case, I set a name and started a build. Here's the config.This db doesn't exist, so when I run the build, I see this.Does this make sense?
Editor, SQLServerCentral
Answers
Regarding walkthroughs we have an example in our documentation under
https://documentation.red-gate.com/display/SCA3/Use+the+Azure+DevOps+Build+extension+with+SQL+Change+Automation+Project