| Author |
Message |
ampo
Joined: 21 May 2009 Posts: 8
|
Posted: Thu May 21, 2009 7:32 am Post subject: How to exclude column by code? |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6369 Location: Red Gate Software
|
Posted: Thu May 21, 2009 11:32 am Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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