Primary Key alternative
RowingWolf
Posts: 4
Sometimes I don't want to use the primary key to compare two tables...sometimes its an alternative column. An example is a table we have where a description is what we would like to match on rather than the identity column.
Is there a way to specify this???
Is there a way to specify this???
This discussion has been closed.
Comments
You don't necessarily need a primary key -- you can also use a column which has a unique constraint or a unique index. If you create a unique index on a column or columns other than the primary key column in SQL Server, you can choose this index as the 'comparison key' in the data comparison wizard.
You should have this in 3.1.8, however. If you click 'compare' right away after choosing the database connection properties, then you don't see the place where you select the comparison key. You have to click Next-> and look at the center-column of the display with the list of tables.
Keep in mind that you also need to put the unique index/constraint on the same column of the same table in both databases!
Thanks Brian!! I'm looking forward to playing with it -- the results should be much better now!!!
Paul