SQL Data Compare

Latest version: 10.0

SQL Data Compare

Knowledge Base

Comparing the data of two tables in the same database

Category: How do I?
Date: 20 May 2009
Product: SQL Data Compare
For testing and data sanitization reasons, it may be desirable to compare data in two similar tables in the same database.

It is possible to compare the data of similar tables in the same database.

To accomplish this, specify the same server and database names in the project on the left and right sides. Next, click on the tables and views tab, and map together the tables that you want to compare.

If the tables are already mapped, unmap them by clicking the table on the left side, and the table on the right side, and click "Unmap", then map them together using the affore-mentioned steps.

If the columns of the tables are named differently, it may be necessary to map the individual columns together as well. Please note that you should ensure that the datatypes of the columns that you map together are the same, or at least similar. For instance, it is possible to map together CHAR and NVARCHAR columns, int and tinyint columns, and decimal and float columns.

Document ID: KB200709000146 Keywords: SQL,Data,Compare,table,same,database,map,columns,owners,schema

Was this article helpful?

Search support
Forums

SQL Data Compare

all SQL products

all products