views:

65

answers:

4

Hey there.

I'm looking for an App that will compare two databases and generate the appropriate scripts to upgrade one from the other (I'm using SQL Server 2008).

My scenario is that I've built a fairly basic CMS a while ago, and just recently added several new features. I'd like to upgrade the 3 or 4 existing websites to the new system, which requires updating the database.

Moreover, I'd like to know the "industry standard" way of doing DB updates and being able to auto upgrade when a new software version is released.

Thanks for the advice.

+3  A: 

Red-Gate SQL Compare. Can't think of anything better

Matt Briggs
+1  A: 

RedGate have several excellent DB Tools that do what you want. Check out SQL Compare

For incremental releases:

  • If you are a 'Microsoft shop' then check out the GDR R2 Database project in Visual Studio 2008, Steep learning curve but it does a lot.

  • Bare bones approach: write all your DB schema and data changes as version controlled scripts. Add a version table to your DB schemas, check and update with each incremental change script you run in.

Mitch Wheat
My VS version is VS ProI'm using SQL Server Web EditionBare bones approach is good, but I'll pay to relieve some of the overhead.
rockinthesixstring
+3  A: 

SQL Compare by Redgate or Visual Studio Team System 2008 Database Edition (Data Dude), the last one will also do static code analysis, see here Running static code analysis on SQL Server database with Visual Studio Team System for database architects for a short post

Make sure to grab Microsoft Visual Studio Team System 2008 Database Edition GDR R2 here http://www.microsoft.com/downloads/details.aspx?FamilyID=bb3ad767-5f69-4db9-b1c9-8f55759846ed&displaylang=en It adds 2008 support

SQLMenace
$10 says he updates the question with the word "free".
MusiGenesis
Free is always great, but I am willing to pay for a product that performs. What about future growth of the product... how do you seamlessley update a database when deploying software updates?
rockinthesixstring
It will create a script for you that you then can execute against the target server
SQLMenace
Has anyone heard of http://www.xsqlsoftware.com/
rockinthesixstring
Never heard of this product
SQLMenace
+2  A: 

Two people have mentioned Red-Gate and it is a great tool. But, you should seriously consider Visual Studio Database Edition for complete database schema management. It's free for users of Visual Studio Team Suite and Visual Studio Developer Edition users. Not only does it do schema comparisons as well as Red-Gate, but it will also version control your schema, permit refactoring and much more.

Randy Minder