Easiest Way To Diff Two Table Schemas In SQL Server 2008?

sooprise picture sooprise · Oct 18, 2010 · Viewed 51k times · Source

I have to do checks between a development and release database and do this manually, which is both slow and not 100% reliable (I only visually inspect the tables).

Is there a quick and easy way to compare table schemas automatically? Maybe even a feature that does this built right into SQL server?

Edit: I'm comparing structure only, thank you for pointing this out.

Answer

Tim S. Van Haren picture Tim S. Van Haren · Oct 18, 2010

I'm a fan of SQL DBDiff, which is an open source tool you can use to compare tables, views, functions, users, etc. of two instances of SQL Server databases and generate a change script between the source and destination databases.