Ignore Table Index Differences
bondjw07
Posts: 3
Hello,
I am attempting to use the SDK to compare 2 tables. These table are identical with the exception of their indexes. In the SQL Compare windows app, I can ignore indexes from within the Project Configuration->Options screen. I am wonder how I can do this from within the SDK comparison. Thanks
~Justin
I am attempting to use the SDK to compare 2 tables. These table are identical with the exception of their indexes. In the SQL Compare windows app, I can ignore indexes from within the Project Configuration->Options screen. I am wonder how I can do this from within the SDK comparison. Thanks
~Justin
Comments
Suggestions?
Thanks for your post. In regards to your question about keeping the defaults, and adding the ignore indexes, starting with version 10.5 of the SDK, there is a new class called "Options.Default.Plus" that can be used to use the default options, plus which ever additional options you would like to add to the project.
In previous versions of the SQL Comparison SDK, comparison options were specified as a bit flags enum. For example:
Options.Default | Options.DropAndCreateInsteadOfAlter
In version 10.5, options are specified using the methods in the Options class. For example:
Options.Default.Plus(Options.DropAndCreateInsteadOfAlter)
For more details see:
https://documentation.red-gate.com/disp ... n+SDK+10.5
Hope this helps.
Best Regards,
Steve
Steve Tanori
Product Support
Red Gate Software Ltd.
866-997-0378