Schema Compare
rduclos
Posts: 8
I am trying to compare 2 databases and only script a portion of the executionblock at a time. Is there a wy to filter the execution block to only script based on if it is a Dropping|Altering|Adding script?
Thank you,
Ryan
Ryan
Comments
The best thing I can think of is to loop through the collection of differences that you get after using the comparewith method and set any object difference's 'Selected' property to 'false' if you do not want to script them.
Then, when you use the work.ExecutionBlock, the differences that you feed to it in the first argument will not be scripted if the individual difference's 'selected' property is set to 'false'.
I am trying to write 3 seperate files based on if they are dropping|alterining|adding.
Ryan