Question

Deploying SQL (SSDT) projects to SQL 2012 from TFS 2012 Visual Studio 2012 using the TFS build controller. All projects have successfully deployed and pushed Post Deploy scripts to the server. (this is a test server where we are testing the deployment of a migration from 2008 to 2012). I needed to recreate the job (which is in the post deployment script) so I asked the deployment manager to drop the job and re-run the deploy. The post deployment script did not run and was not included in the generated deployment sql on the TFS server.

Was it helpful?

Solution

database Project not running Post Deployment scripts

See the linked question for the answer. I removed comments. When I did this the Build Action reverted to "None" I checked later and fixed this by setting to "Post-Deploy" and without the comments, it worked.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top