Comparing the data of two tables in the same database
Published 13 December 2022
For testing and data sanitization reasons, you may want to compare data in two similar tables in the same database.
To do this, specify the same server and database as the source and target. Next, click the Tables & Views tab, and map together the tables you want to compare. For information about how to map tables, see Selecting tables and views.
If the columns of the tables are named differently, it may be necessary to map the individual columns together as well.
Make sure the data types of the columns you map together are the same, or at least similar. For example, it's possible to map together CHAR and NVARCHAR columns, int and tinyint columns, and decimal and float columns.