简体   繁体   中英

Comparison for 75 tables in two different SQL Server databases

I need to do a column by column, row by row comparison for 75 tables in two different databases. The tables contain up to 165 million records.

I need to determine if there are any missing records, and we need to identify any columns that contain different values. Potential problems include decimal errors.

There are many ways to do this:

  • You can create linked server to another server and do comparison using EXCEPT, LEFT OUTER JOIN etc. Refer to Sql comparison with two tables
  • You can use tablediff.exe utility to do comparison between tables. Refer to Tablediff.exe
  • You can use third party tools like Redgate Data Compare. Refer to Sql data compare

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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