Working with Databases in Visual Studio 2010

Having had a less than happy time with the Database Project in Visual Studio 2010 I can report that I have found a workable alternative.

  1. Create Database (DEV version) (However you like)
  2. Use Sql Server Management Studio to generate an initial build script
  3. Create a second (Reference version) copy

make changes in the DEV version

  1. Use Visual Studio’s schema compare with most of the non schema comparisons turned off to compare with  the Reference DB
  2. Generate a change script, save it with a name including the version number
  3. Use SSMS to generate a creation script and save that over the original
  4. Commit to version control

So from then on you can either upgrade a prod database or create one from scratch. Not as nice a the Redgate tools but much cheaper…

 

This entry was posted in VS2010 and tagged . Bookmark the permalink.

Leave a Reply