AddWithEncryption options
rickybibi
Posts: 25 Bronze 2
Is it possible to use the "AddWithEncryption" options with CompareWith and BuildFromDifferences.
Because ,i tried it and it didn't works.
The only way it's working ,it from a snapshots that was created with this options.
If I compare with a database that has not already encrypted, this didn't work.
Thanks
Because ,i tried it and it didn't works.
The only way it's working ,it from a snapshots that was created with this options.
If I compare with a database that has not already encrypted, this didn't work.
Thanks
Comments
This doesn't sound like the expected behaviour. Is the WITH ENCRYPTION clause missing in the migration SQL for the objects? This could be because BuildFromDifferences does not specify Options.AddWithEncryption in the options enumeration which is the second argument to the buildfromdifferences function.
exactly , no With encryption in the sql script.
Here a snap of the code C#:
All objects in the snapshot are NOT encrypted.
The option seems like to be ignore in buildfrom difference !
Thanks
Thanks
Sorry for the confusion. This does appear to be the way the SQLCompare.Engine works: it adds WITH ENCRYPTION to all objects that support encryption by adding WITH ENCRYPTION to the data definition for these objects during registration.
Therefore, you'd need to register the database with the Add With Encryption turned on for it to work properly. If your snapshot was created with the option off, any objects that you migrate will not be created with encryption on the destination database.
Ok
Thanks