How to ignore the 'WITH ENCRYPTION' phrase ?
mah530
Posts: 7
I need to compare the objects in two SQL 2000 databases. In one database, all of the objects are encrypted, in the other they are not. ( This will always be the case). When I compare the objects, all objects are considered different due to the WITH ENCRYPTION clause that exists only in one database.
How can I set up the compare so that it will ignore this one difference, and give me just the legitimate differences?
Can I set it up to ignore specific text - such as 'WITH ENCRYPTION'?
Thank you!!!
How can I set up the compare so that it will ignore this one difference, and give me just the legitimate differences?
Can I set it up to ignore specific text - such as 'WITH ENCRYPTION'?
Thank you!!!
Comments
Unfortunately there is not an option available within SQL Compare to Ignore the 'WITH ENCRYPTION' syntax when comparing or synchronizing database objects.
Also I am unaware of a work around for the problem you have reported to us.
I have added the details of this forum post to an existing Feature Request, requesting to add an Ignore WITH Encryption option. The reference number for this request is SC-4419. At this time the feature request is marked for review. Hopefully the requested feature will appear in a future version of SQL Compare.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
This means visually checking each object to see if the 'difference' is only due to the encryption phrase. Thousands of objects.
I am interested in any workarounds that you could think of. I was considering scripting the encypted db, and removing the 'with encyption' , and then comparing it to the master d...but, I don't think I can even generate a script against the encypted objects...
Any other workaround ideas??
Thanks
Could I try creating new Option Type - "IgnoreWithEncryption" - that would be processed in similar way as the existing option type "IgnoreWithNocheck"? Only difference would be that it would look for the WITH ENCRYPTION phrase in the object text, rather than the WITH NOCHECK on foreign keys and check constraints.
Is it feasible? or are all needed classes sealed/unavailable to me?
Thank you!
A workaround you can use, if you are using the SDK, is to write your own state machine that parses the object text in the relevant Text property if the objects aren't equal, and determines if the only difference is the WITH ENCRYPTION property missing in one.
Simon C
Thanks
Is this possible? Without me having to write the actual compare process?
Simon C
Please consider adding the option to 'Ignore WITH ENCRYPTION' in a future release of the product.
Thanks