r/SQLServer • u/VitrumTormento • Jun 20 '26
Question Multiple DBs in Database DevOps project?
Is it possible to capture multiple DBs in a Database DevOps project?
We have a data warehouse split across two databases which would we typically have to build and push changes to both when developing new features.
9
Upvotes
8
u/IndependentTrouble62 Jun 20 '26
You can have two different database projects in one solution. Then create github actions to trigger off each solutions to manage deployments for each on the pull request into the production branch.
5
u/jwk6 Jun 20 '26 edited Jun 20 '26
Yes, you store each database in a seperate project in the same solution, and use Database References to make cross-database references resolve.
Deployment is a little more difficult because you will need multiple builds and mutliple Publish Profiles. It's totally doable. I have done it before with CI/CD using a Git repo and Azure DevOps pipelines for releases (deploys).
Updated to say Publish Profiles. Sorry about that.