|
I am trying to Encrypt all column in my table. this what i got so far. but it is not doing what i want. How did you do yours?
(comments are locked)
|
|
If you want all columns encrypted you need to encrypt every column as you did ReceiptNo_Encrypted. A totally encrypted row is not generally a good design solution. Indexes are useless on encrypted columns as are Primary Keys. It also adds processing overhead to perform the cipher work. Who are you trying to encrypt the data from? There may be alternative solutions for you.
(comments are locked)
|
|
I don't think there is any straight forward way of implementing encryption on entire row other than encrypting(as in post) all columns individually, but encrypting entire row may create serious performance issues.
(comments are locked)
|
|
AS Greg mentioned, alternative solutions are probably the way to go. It is rarely wise to encrypt the entire row (the PK at least should probably not be encrypted so you can find the row you want...). Depending on the circumstance, TDE is an option, or encrypting the underlying disk outside of SQL, or encrypting just selected columns while leaving others in the clear. Also depending on the circumstance it can sometimes make sense to push the encryption duty to the client and just have SQL store the binary data for the columns that need encryption.
(comments are locked)
|


What is your code doing? Meaning, are there error messages? Does it complete successfully?
What are you expecting your code to do?
I expect my code to encrypted the entire row