简体   繁体   English

比较2个不同的数据库表列

[英]compare 2 different databases table columns

我需要比较来自2个不同数据库的数据库表来查看差异所在,是否有一个简单的工具或脚本?

它还可以使用Visual Studio Team Edition for Database Professionals 2005/2008或Ultimate 2010.您可以在MSDN上找到更多详细信息

if you want to compare missing rows you can do something like this 如果你想比较缺失的行,你可以做这样的事情

select id from db1.dbo.table1
where id not in (select id from db2.dbo.table2)

AdeptSQL Diff来比较数据库/表的结构http://www.adeptsql.com/

RedGate Data Compare is the one... Look no further. RedGate Data Compare就是其中之一......不要再犹豫了。 Once you start using you can't use any other tool. 一旦开始使用,就无法使用任何其他工具。 I'm not affiliated with this company, I'm just a fan of their product suite. 我不是这家公司的附属公司,我只是他们产品套件的粉丝。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM