Red Gate forums :: View topic - "CreateFromIntersection" - Can't see all tables
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

"CreateFromIntersection" - Can't see all tables

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



Joined: 21 May 2009
Posts: 8

PostPosted: Mon Jun 22, 2009 7:23 am    Post subject: "CreateFromIntersection" - Can't see all tables Reply with quote

Hi.

After getting Source DB tables and Target DB tables, I user CreateFromIntersection to get list of tables from both.

I have a table that 100% exists in both but it isn't in the result list...

Any idea why it isn't there?

Thanks for your help.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6641

PostPosted: Mon Jul 06, 2009 12:48 pm    Post subject: Reply with quote

In order for CreateFromIntersection to map tables, the tables must have "matching" primary keys or unique indexes in both databases.

All tables and views should appear in the mappings collection if the names and schemata match up, but they may be ineligible for comparison.

Programatically, you can check the "Status" property on each mapping to see if the data in the mapped table or view will actually be compared. If not, then you can add primary keys or map manually. Please see the following KB for example code.

http://www.red-gate.com/support/Knowledgebase/SQL_Comparison_SDK/SDK7ColumnMapping.pdf
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