Anyone got examples of how to do a DB deployment without TFS in MSBuild. I had automated db deployments in nant at an old position, but need to do it in msbuild at a new job. I was using the nant and setting a boolean flag to trigger processing sql files, but im unsure of how to do this in msbuild. Everything surprising with MSBuild points to TFS
I was using the following algorithm
// Set run updates = false
// Store DB Version from Version Table
// For each file in SQL directory
// if file == db version
// set run updates = true
// else if run updates
// run sql in file
// update db version
I’m open to changes in how this is handled… but can’t forsee my company moving to TFS
I decided to use DBDeploy to do the database deployments. The following works in my situation.
with a build file of