I encrypt the database columns using symmetric or asymmetric keys. When decrypt the encrypted columns, the query is as follows:
OPEN SYMMETRIC KEY SymmetricKey1 DECRYPTION BY CERTIFICATE Certificate1;
SELECT * FROM table;
CLOSE SYMMETRIC KEY SymmetricKey1;
Similarly, I need to update all similar SELECT queries in my C# application (I need to use OPEN and CLOSE key). I'm new to C# and I have a database which is MSSQL2008. I couldn't find any document about reading data from encrypted columns without changing my queries in the app. Is there any way I can use regarding this?
OPEN SYMMETRIC KEY SymmetricKey1 DECRYPTION BY CERTIFICATE Certificate1;
SELECT * FROM table;
CLOSE SYMMETRIC KEY SymmetricKey1;
Similarly, I need to update all similar SELECT queries in my C# application (I need to use OPEN and CLOSE key). I'm new to C# and I have a database which is MSSQL2008. I couldn't find any document about reading data from encrypted columns without changing my queries in the app. Is there any way I can use regarding this?