开发者

Script.PostDeployment.sql not executing in CI build VS 2010

I have a database project in VS 2010 (SQL 2008). The local Deploy Solution action works and executes all of the SQL in the Script.PostDeployment.sql file. When I check changes in, the Build Definition for the continuous integration server ex开发者_开发技巧ecutes. The database is deployed into the CI environment, but the PostDeployment script doesn't get executed.

I wasn't able to find anything specific to this particular scenario. I also expect I'll need to provide additional information unless this is a trivial problem that I missed somewhere.

Additional Information:

  • The build is executing vsdbcmd.exe to deploy.
  • The deployment manifest references the PostDeployment.sql file and it's present in the path with the rest of the files.

Here is a reference to a thread on social.msdn.microsoft.com regarding this problem.


We found that the VSDBCMD was not referencing the deployment manifest. The /manifest flag was added to the VSDBCMD and the PostDeployment.sql file was executed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜