I recently came across a problem where I had to deploy a database as part of the TFS (Team Foundation Server) build process. The default build process templates you get out of the box does not have a way to deploy database as part of a build process. There are 2 ways to do this depending on which build definition you use -
- If you are using TFS 2010 build definition, add custom steps/actions in build process template to deploy database,
- If you are using old MSBuild 2008 – TFSBuild.proj file, you can call external batch file or command(s) to deploy database.



























