0

I am using DACPAC deployer to deploy my DB schema using MS Release management and TFS build.I have some configuration tables and the data in these tables should be synchronized with each destination DBs. A data script file is added in my SSDT project. "Database Deployer- Execute script" component has been created in RM client to run the data script file. I need to run this script in different environment and the DB names are different. There are only 2 arguments for this component, the arguments are: -S ServerName -i "ScriptName" -b As DB names are different, i cannot go for "Use DBName;" along with the script. Questions:

  1. How i could manage this script to run on different Databases?
  2. Is there any other way to release data along with schema?
4

1 回答 1

0

您应该能够使用 SQL 命令参数参数化 SQL 脚本并在执行时注入它们。我还建议有一个单独的活动来执行数据脚本。

更新模式和数据加载应该是单独的活动。

于 2014-11-23T09:10:09.727 回答