BUG with Options.IgnoreComments and Defaults

Automate and integrate using the SQL comparison API

BUG with Options.IgnoreComments and Defaults

Postby jpjones75 » Wed Feb 01, 2012 9:57 pm

I had an issue where the SDK was trying to drop and re-create a default. The only difference in the defaults was that one of them had a comment above it (a comment was included in the SQL batch when the default was created). I modified our usage of the SDK to include the Options.IgnoreComments setting. However, it still attempted to drop and re-create the default (it still considered the comment as a difference). This works properly in SQL Compare, but does not appear to work propertly in the SDK. I tested comparing stored procedures via the SDK where only comments were different, and the SDK correctly chose not to synchronize the stored procedures (I did not test any other object types). I was able to resolve simply by setting the Options.IncludeDependencies so that the SDK can include these erroneous differences and still update the database successfully. However, this still apears to be a bug in the SDK.
Posts: 4
Joined: Mon Apr 13, 2009 1:09 pm

Postby james.billings » Fri Feb 03, 2012 2:45 pm

Thanks for your post. Which version of the DLLs are you using for your SDK solution?
If it's the ones that originally came with the SDK installer they may be older than the ones that Compare is using. If you amend your solution to point at the DLLs in the SQL Compare program folder, does the same thing happen?
Posts: 1122
Joined: Wed Jun 16, 2010 10:10 am
Location: Red Gate

Return to SQL Comparison SDK Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests