Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Schema Compare!

1 view
Skip to first unread message

tom d

unread,
Aug 12, 2005, 1:25:03 PM8/12/05
to
Hi,
Without using third party tools, does anyone know if there is any sql script
or SP out there that will do a schema compare between two SQL tables from two
different databases on the same server or different servers.

Thanks,
Tom

Aaron Bertrand [SQL Server MVP]

unread,
Aug 12, 2005, 1:29:45 PM8/12/05
to
http://www.aspfaq.com/2209

"tom d" <to...@discussions.microsoft.com> wrote in message
news:A4DC4080-66E3-4FED...@microsoft.com...

JT

unread,
Aug 12, 2005, 3:18:44 PM8/12/05
to
Object comparison utilities are nice but ...

Within Enterprise Manager,
1. right click on the database and then select All Tasks.. Generate SQL
Scripts..
2. Select the object types you want to compare
3. On the options tab, choose options to add to the scripts such as
indexes and primary keys. Also, choose the options ANSI text and "Create One
File Per Object".
4. When you click OK, it a dialog will prompt for the folder to generate
the scripts to.
5. Repeat the same steps for the other server/database but to a different
folder.

Download the freeware file/folder comparison utility WinMerge:
http://winmerge.sourceforge.net/

Those scripts with differences will be highted, and clicking on a file will
highlight specific changes between the two versions.

You can also use the DMO api to script objects programatically.

Enjoy


"tom d" <to...@discussions.microsoft.com> wrote in message
news:A4DC4080-66E3-4FED...@microsoft.com...

0 new messages