I'm not sure if there is such a tool... given 2 sql server databases, I want the tool to tell me what is different between the 2 and give me the update script. I.e. create indexes, create table, create relationship, etc... I don't need data comparing, just schema.
Asked
Active
Viewed 3,929 times
1
-
Redgate makes a tool which can do that. – UnhandledExcepSean Jan 22 '15 at 02:31
-
1This looks like it would be useful. https://msdn.microsoft.com/en-us/library/hh272690(v=vs.103).aspx – Paul Zepernick Jan 22 '15 at 02:41
-
possible duplicate of [What is a free tool to compare two SQL Server Databases?](http://stackoverflow.com/questions/193438/what-is-a-free-tool-to-compare-two-sql-server-databases) – johnny Jan 22 '15 at 03:00
4 Answers
3
This one is really popular, but it's not free.
If your using SQL Server 2005 or 2008. You can try these
SQL Server Database Comparison Tool
You can also use the Schema Compare option in SSMS.

Arun
- 941
- 6
- 13
0
Sql Server Data Tools (SSDT) has a schema compare tool, with an option to generate an update script. The example image below is version 2015.

James Wierzba
- 16,176
- 14
- 79
- 120
0
Try xSQL Schema Compare. It can compare any object in the database and generate synchronization scripts for all of the differences or just the ones you choose. Also, you can use it for free if you are using SQL Server Express.
Disclosure: I'm affiliated with xSQL.

Endi Zhupani
- 736
- 2
- 7
- 22