Red Gate forums :: View topic - Change DataCompare Comparison Key
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK Previous Versions
SQL Comparison SDK Previous Versions forum

Change DataCompare Comparison Key

Search in SQL Comparison SDK Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
Rawden



Joined: 07 Nov 2006
Posts: 23

PostPosted: Mon Sep 21, 2009 11:33 am    Post subject: Change DataCompare Comparison Key Reply with quote

Hi,

In SQL Data Compare, you have the option of changing the Comparision Key from the primary key to something else.

I'm just looking for some help to enable me to do this in the SDK.

Would I still create the mappings:

dbMappings.CreateMappings(dbSource.Tables, dbDest.Tables)

and then change the key afterwards, or would I change this to something else?
Back to top
View user's profile Send private message Send e-mail
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Tue Sep 22, 2009 4:22 pm    Post subject: Reply with quote

Hi Rawden,

Using the SDK, you can use the automatically-created mappings as a starting point and modify them by setting MatchingMappings, or you can create the table and column mappings from scratch. The following examples illustrate these:

Modifying automatically-created mappings
Creating mappings manually
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group