Database.CompareWith limited to specific tables?
JoergA
Posts: 2
Hi all:
I am evaluating SQL Comparison SDK for replicating a SQL database between remote locations. The tables to be synchronized are only about 10-20, but the database in total has some 2,000 tables. When running Database.CompareWith there seems to be no option to limit to specific tables, all the "filters" I have seen only take effect after the CompareWith has already taken place, which takes a long time for 2,000 tables even if the servers are on the same network. If I cannot limit the tables to be included in the CompareWith operation then I fear the SQL Comparison SDK will be useless for this kind of deployment...
Any clues on whether this is supported or not?
Thanks,
Joerg.
I am evaluating SQL Comparison SDK for replicating a SQL database between remote locations. The tables to be synchronized are only about 10-20, but the database in total has some 2,000 tables. When running Database.CompareWith there seems to be no option to limit to specific tables, all the "filters" I have seen only take effect after the CompareWith has already taken place, which takes a long time for 2,000 tables even if the servers are on the same network. If I cannot limit the tables to be included in the CompareWith operation then I fear the SQL Comparison SDK will be useless for this kind of deployment...
Any clues on whether this is supported or not?
Thanks,
Joerg.
Comments
The same basic idea applies to comparing data as well, except you can choose which tables to compare before running the comparison.
As far as reading the schema, you can't stop the SQL Compare engine from reading absolutely all of it before you can map tables.
For data, there are a number of different ways you can filter - For vertical filters you can exclude tables and columns using mappings. For horizontal filters, you have a few options. The WHERE clause, at least, will allow you to compare a subset of data without dumping it all back on the client first.
Please see:
http://sdk.red-gate.com/index.php/Filte ... a_overview