Red Gate forums :: View topic - How to exclude column by code?
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

How to exclude column by code?

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: Thu May 21, 2009 7:32 am    Post subject: How to exclude column by code? Reply with quote

Hello.

How can I exclude column from beeing compared by code?

This is my current code:
Code:

commonTables = Tables.CreateFromIntersection(dbSource.Tables, dbTarget.Tables);

TableComparisonSetting = new TableComparisonSetting(table.FullyQualifiedName, table.Fields, table.PrimaryKey.Fields);

m_settings.Add(TableComparisonSetting);

m_session.CompareDatabases(dbSource, dbTarget, m_settings);

block = m_provider.GetMigrationSQL(m_session, true);


Is it somthing in the "table.Fields" parameter?

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



Joined: 23 Aug 2004
Posts: 6589

PostPosted: Thu May 21, 2009 11:32 am    Post subject: Reply with quote

The following example shows how to exclude particular fields from the data comparison: http://labs.red-gate.com/index.php/ComparisonSessionExample

I hope this works for you.
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