I need a free tool or some kind of tip/technique to compare the structure of two Microsoft SQL databases. Preferably MS SQL 2005.

The technique I tried to make work was generating scripts from both databases and then comparing the two files, but SQL Server generates objects in random order.