title: Visual Studio 2010 automated Database deployment
body: <p>In Visual Studio 2010 there is a nice feature of the database project that allows you to deploy to a database as well as set up various environments based on your configuration (Build deploy etc)</p>
  
  <p>I Would like to integrate this into our automated build environment.</p>
  
  <p>Firstly by having the deploy script run after a successful build on my local machine.  (So I can go straight into running the unit tests)</p>
  
  <p>Then by Having the deploy script run after the successful build on our build server.  so that any schema changes required for the unit and integration tests will run.</p>
  
  <p>How can I adjust the MSBuild or similar to run these in deploy mode.</p>