SQL Database Project: build different scripts depending on build configuration

前端 未结 2 1242
渐次进展
渐次进展 2021-01-03 03:10

The problem I want to solve is to build different scripts depending on build configuration.

Say we have two instances of SQL Server:

  • Enterprise version
2条回答
  •  醉话见心
    2021-01-03 03:40

    You may have another possible option in using composite projects. Jamie Thompson blogged about them here: http://sqlblog.com/blogs/jamie_thomson/archive/2013/03/10/deployment-of-client-specific-database-code-using-ssdt.aspx

    This would let you build a main project and tie in additional projects with the environment-specific code. You could deploy the appropriate one by doing some checks in the release scripts.

提交回复
热议问题